ShortcutMapProperty constructor

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

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

The showName and level arguments must not be null.

Implementation

ShortcutMapProperty(
  String name,
  Map<LogicalKeySet, Intent> value, {
  bool showName = true,
  Object defaultValue = kNoDefaultValue,
  DiagnosticLevel level = DiagnosticLevel.info,
  String description,
}) : assert(showName != null),
     assert(level != null),
     super(
       name,
       value,
       showName: showName,
       defaultValue: defaultValue,
       level: level,
       description: description,
     );