FlutterShortcuts class

Constructors

FlutterShortcuts()

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

changeShortcutItemIcon({required String id, required String icon}) Future<void>
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.
clearShortcutItems() Future<void>
clearShortcutItems will remove all the shortcut items.
getIconProperties() Future<Map<String, int>>
getIconProperties returns the "maxHeight" and "maxWidth" of the shortcut icon. Example: {"maxHeight": 250, "maxWidth": 200}
getMaxShortcutLimit() Future<int?>
getMaxShortcutLimit returns the maximum number of static or dynamic shortcuts that each launcher icon can have at a time.
initialize({bool debug = true}) Future<void>
initialize initializes the flutter_shortcuts plugin.
listenAction(ShortcutAction action) Future<void>
listenAction performs action when shortcut is initiated.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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 ID, the shortcut will be updated and pushed at the end of the shortcut list.
pushShortcutItems({required List<ShortcutItem> shortcutList}) Future<void>
pushShortcutItems updates dynamic or pinned shortcuts with same IDs and pushes new shortcuts with different IDs.
setShortcutItems({required List<ShortcutItem> shortcutItems}) Future<void>
setShortcutItems will set all the shortcut items.
toString() String
A string representation of this object.
inherited
updateShortcutItem({required ShortcutItem shortcut}) Future<void>
updateShortcutItem updates a single shortcut item based on id. If the ID of the shortcut is not same, no changes will be reflected.
updateShortcutItems({required List<ShortcutItem> shortcutList}) Future<void>
updateShortcutItems updates shortcut items. If the IDs of the shortcuts are not same, no changes will be reflected.

Operators

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