pushShortcutItem static method
pushShortcutItem will push a new shortcut item. If there is already a dynamic or pinned shortcut with the same android id or ios action, the shortcut will be updated and pushed at the end of the shortcut list. Officially Supported Platforms/Implementations:
- Android
- iOS
Implementation
static Future<void> pushShortcutItem({required ShortcutItem shortcut}) async {
return FlutterShortcutPlatform.instance.pushShortcutItem(shortcut);
}