pushShortcutItem method

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

pushShortcutItem will push a new shortcut item. If there is already a dynamic or pinned shortcut with the same ID, the shortcut will be updated and pushed at the end of the shortcut list.

Implementation

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