copyWith method
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
);
}
SpreadsheetRow copyWith({
String? id,
Map<String, String>? cells,
}) {
return SpreadsheetRow(
id: id ?? this.id,
cells: cells ?? Map.from(this.cells), // Deep copy the map
);
}