ShortcutItem constructor

const ShortcutItem({
  1. required String id,
  2. required String action,
  3. required String shortLabel,
  4. ShortcutIconAsset shortcutIconAsset = ShortcutIconAsset.flutterAsset,
  5. String? longLabel,
  6. String? icon,
  7. bool conversationShortcut = false,
  8. bool isImportant = false,
  9. bool isBot = false,
})

Create a shortcut item. Eg.

const ShortcutItem(
  id: "1",
  action: 'Home page action',
  shortLabel: 'Home Page',
  icon: 'assets/icons/home.png',
);

Implementation

const ShortcutItem({
  required this.id,
  required this.action,
  required this.shortLabel,
  this.shortcutIconAsset = ShortcutIconAsset.flutterAsset,
  this.longLabel,
  this.icon,
  this.conversationShortcut = false,
  this.isImportant = false,
  this.isBot = false,
});