ShortcutMapProperty constructor Null safety

ShortcutMapProperty(
  1. String name,
  2. Map<ShortcutActivator, Intent> value,
  3. {bool showName = true,
  4. Object defaultValue = kNoDefaultValue,
  5. DiagnosticLevel level = DiagnosticLevel.info,
  6. String? description}
)

Create a diagnostics property for Map<ShortcutActivator, Intent> objects, which are the same type as the Shortcuts.shortcuts property.

Implementation

ShortcutMapProperty(
  String super.name,
  Map<ShortcutActivator, Intent> super.value, {
  super.showName,
  Object super.defaultValue,
  super.level,
  super.description,
}) : assert(showName != null),
     assert(level != null);