changeShortcutItemIcon method

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

changeShortcutItemIcon will change the icon of the shortcut based on id. If the ID of the shortcut is not same, no changes will be reflected.

Implementation

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