copyWith method
ShortcutOptions
copyWith({
- List<
List< ? undo,LogicalKeyboardKey> > - List<
List< ? redo,LogicalKeyboardKey> > - List<
List< ? search,LogicalKeyboardKey> > - List<
List< ? zoomIn,LogicalKeyboardKey> > - List<
List< ? zoomOut,LogicalKeyboardKey> > - List<
List< ? fitCameraToArea,LogicalKeyboardKey> > - List<
List< ? deletePoint,LogicalKeyboardKey> >
Creates a copy of this ShortcutOptions
object with optional overrides.
Implementation
ShortcutOptions copyWith({
List<List<LogicalKeyboardKey>>? undo,
List<List<LogicalKeyboardKey>>? redo,
List<List<LogicalKeyboardKey>>? search,
List<List<LogicalKeyboardKey>>? zoomIn,
List<List<LogicalKeyboardKey>>? zoomOut,
List<List<LogicalKeyboardKey>>? fitCameraToArea,
List<List<LogicalKeyboardKey>>? deletePoint,
}) {
return ShortcutOptions(
undo: undo ?? this.undo,
redo: redo ?? this.redo,
search: search ?? this.search,
zoomIn: zoomIn ?? this.zoomIn,
zoomOut: zoomOut ?? this.zoomOut,
fitCameraToArea: fitCameraToArea ?? this.fitCameraToArea,
deletePoint: deletePoint ?? this.deletePoint,
);
}