setApplicationSwitcherDescription method Null safety
- ApplicationSwitcherDescription description
Specifies the description of the current state of the application as it pertains to the application switcher (also known as "recent tasks").
Any part of the description that is unsupported on the current platform will be ignored.
Implementation
static Future<void> setApplicationSwitcherDescription(ApplicationSwitcherDescription description) async {
await SystemChannels.platform.invokeMethod<void>(
'SystemChrome.setApplicationSwitcherDescription',
<String, dynamic>{
'label': description.label,
'primaryColor': description.primaryColor,
},
);
}