setApplicationSwitcherDescription static method Null safety

Future<void> setApplicationSwitcherDescription(
  1. 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.


static Future<void> setApplicationSwitcherDescription(ApplicationSwitcherDescription description) async {
  await SystemChannels.platform.invokeMethod<void>(
    <String, dynamic>{
      'label': description.label,
      'primaryColor': description.primaryColor,