ShortcutSurface constructor
ShortcutSurface({
- required String id,
- bool exclusive = false,
- List<
ShortcutBinding> bindings = const [], - Duration? sequenceTimeout,
- ProgramInterceptor? interceptor,
- KeymapLayerResult onMessage(
- Msg msg
- Map<
String, Object?> meta = const {},
Creates a surface.
Implementation
ShortcutSurface({
required this.id,
this.exclusive = false,
List<ShortcutBinding> bindings = const [],
this.sequenceTimeout,
this.interceptor,
this.onMessage,
this.meta = const {},
}) : bindings = List.unmodifiable(bindings);