ShortcutSurface constructor

ShortcutSurface({
  1. required String id,
  2. bool exclusive = false,
  3. List<ShortcutBinding> bindings = const [],
  4. Duration? sequenceTimeout,
  5. ProgramInterceptor? interceptor,
  6. KeymapLayerResult onMessage(
    1. Msg msg
    )?,
  7. 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);