copyWith method
ShortcutSurface
copyWith({
- String? id,
- bool? exclusive,
- List<
ShortcutBinding> ? bindings, - Duration? sequenceTimeout,
- ProgramInterceptor? interceptor,
- KeymapLayerResult onMessage(
- Msg msg
- 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,
);
}