updateShortcutItem method

Future<void> updateShortcutItem({
  1. required ShortcutItem shortcut,
})

updateShortcutItem updates a single shortcut item based on id. If the ID of the shortcut is not same, no changes will be reflected.

Implementation

Future<void> updateShortcutItem({required ShortcutItem shortcut}) async {
  return FlutterShortcutsPlatform.instance.updateShortcutItem(shortcut);
}