LogicalKeySet class Null safety

A set of LogicalKeyboardKeys that can be used as the keys in a map.

A key set contains the keys that are down simultaneously to represent a shortcut.

This is mainly used by ShortcutManager and Shortcuts widget to allow the definition of shortcut mappings.

This is a thin wrapper around a Set, but changes the equality comparison from an identity comparison to a contents comparison so that non-identical sets with the same keys in them will compare as equal.

Mixed in types


LogicalKeySet(LogicalKeyboardKey key1, [LogicalKeyboardKey? key2, LogicalKeyboardKey? key3, LogicalKeyboardKey? key4])
A constructor for making a LogicalKeySet of up to four keys. [...]
LogicalKeySet.fromSet(Set<LogicalKeyboardKey> keys)
Create a LogicalKeySet from a set of LogicalKeyboardKeys. [...]


hashCode int
The hash code for this object. [...]
final, inherited, late
keys Set<LogicalKeyboardKey>
Returns a copy of the KeyboardKeys in this KeySet.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


debugDescribeKeys() String
Returns a description of the key set that is short and readable. [...]
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]


operator ==(Object other) bool
The equality operator. [...]