copyWith method

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,
  );
}