ShortcutItem class

Constructors

ShortcutItem({required String id, required String action, required String shortLabel, ShortcutIconAsset shortcutIconAsset = ShortcutIconAsset.flutterAsset, String? longLabel, String? icon, bool conversationShortcut = false, bool isImportant = false, bool isBot = false})
Create a shortcut item. Eg.
const

Properties

action String
Action performed by the shortcut
final
conversationShortcut bool
true if the shortcut is a person.
final
hashCode int
The hash code for this object.
no setterinherited
icon String?
Flutter asset path. Only Supports image files. Eg. .png/.jpg
final
id String
ID of the shortcut that differentiates it from other shortcuts.
final
isBot bool
true if the person shortcut is a machine/bot
final
isImportant bool
true if the person shortcut is a person
final
longLabel String?
Long label of the shortcut
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortcutIconAsset ShortcutIconAsset
ShortcutIconType.androidAsset or ShortcutIconType.flutterAsset
final
shortLabel String
Short label of the shortcut
final

Methods

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

Operators

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