copyWith method

SpreadsheetRow copyWith({
  1. String? id,
  2. Map<String, String>? cells,
})

Implementation

SpreadsheetRow copyWith({
  String? id,
  Map<String, String>? cells,
}) {
  return SpreadsheetRow(
    id: id ?? this.id,
    cells: cells ?? Map.from(this.cells), // Deep copy the map
  );
}