changeShortcutItemIcon static method

Future<void> changeShortcutItemIcon({
  1. required String id,
  2. required String icon,
})

changeShortcutItemIcon will change the icon of the shortcut based on android ID or ios action. If the android ID or ios action of the shortcut is not same, no changes will be reflected. Officially Supported Platforms/Implementations:

  • Android
  • iOS

Implementation

static Future<void> changeShortcutItemIcon(
    {required String id, required String icon}) async {
  return FlutterShortcutPlatform.instance.changeShortcutItemIcon(id, icon);
}