FlutterShortcut class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

changeShortcutItemIcon({required String id, required String icon}) Future<void>
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:
clearShortcutItems() Future<void>
clearShortcutItems will remove all the shortcut items. Officially Supported Platforms/Implementations:
getIconProperties() Future<Map<String, int>>
getIconProperties returns the "maxHeight" and "maxWidth" of the shortcut icon. Example: {"maxHeight": 250, "maxWidth": 200} Officially Supported Platforms/Implementations:
getMaxShortcutLimit() Future<int?>
getMaxShortcutLimit returns the maximum number of static or dynamic shortcuts that each launcher icon can have at a time. Officially Supported Platforms/Implementations:
initialize({bool debug = true}) Future<void>
initialize initializes the flutter_shortcuts plugin. Officially Supported Platforms/Implementations:
listenAction(ShortcutAction action) Future<void>
listenAction performs action when shortcut is initiated. Officially Supported Platforms/Implementations:
pushShortcutItem({required ShortcutItem shortcut}) Future<void>
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:
pushShortcutItems({required List<ShortcutItem> shortcutList}) Future<void>
pushShortcutItems updates dynamic or pinned shortcuts with same android IDs or ios actions and pushes new shortcuts with different IDs. Officially Supported Platforms/Implementations:
setShortcutItems({required List<ShortcutItem> shortcutItems}) Future<void>
setShortcutItems will set all the shortcut items. Officially Supported Platforms/Implementations:
updateShortcutItem({required ShortcutItem shortcut}) Future<void>
updateShortcutItem updates a single shortcut item 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:
updateShortcutItems({required List<ShortcutItem> shortcutList}) Future<void>
updateShortcutItems updates shortcut items. If the android IDs or ios actions of the shortcuts are not same, no changes will be reflected. Officially Supported Platforms/Implementations: