copyWith method

ShortcutSurface copyWith({
  1. String? id,
  2. bool? exclusive,
  3. List<ShortcutBinding>? bindings,
  4. Duration? sequenceTimeout,
  5. ProgramInterceptor? interceptor,
  6. KeymapLayerResult onMessage(
    1. Msg msg
    )?,
  7. Map<String, Object?>? meta,
})

Implementation

ShortcutSurface copyWith({
  String? id,
  bool? exclusive,
  List<ShortcutBinding>? bindings,
  Duration? sequenceTimeout,
  ProgramInterceptor? interceptor,
  KeymapLayerResult Function(Msg msg)? onMessage,
  Map<String, Object?>? meta,
}) {
  return ShortcutSurface(
    id: id ?? this.id,
    exclusive: exclusive ?? this.exclusive,
    bindings: bindings ?? this.bindings,
    sequenceTimeout: sequenceTimeout ?? this.sequenceTimeout,
    interceptor: interceptor ?? this.interceptor,
    onMessage: onMessage ?? this.onMessage,
    meta: meta ?? this.meta,
  );
}