ShortcutItem constructor

const ShortcutItem({
  1. required String type,
  2. required String localizedTitle,
  3. String? icon,
})

Constructs an instance with the given type, localizedTitle, and icon.

Only icon should be nullable. It will remain null if unset.

Implementation

const ShortcutItem({
  required this.type,
  required this.localizedTitle,
  this.icon,
});