copyWith method
Board
copyWith(
{ - int? id,
- String? self,
- String? name,
- String? type,
- Map<String, dynamic>? admins,
- BoardLocation? location,
- bool? canEdit,
- bool? isPrivate,
- bool? favourite,
})
Implementation
Board copyWith(
{int? id,
String? self,
String? name,
String? type,
Map<String, dynamic>? admins,
BoardLocation? location,
bool? canEdit,
bool? isPrivate,
bool? favourite}) {
return Board(
id: id ?? this.id,
self: self ?? this.self,
name: name ?? this.name,
type: type ?? this.type,
admins: admins ?? this.admins,
location: location ?? this.location,
canEdit: canEdit ?? this.canEdit,
isPrivate: isPrivate ?? this.isPrivate,
favourite: favourite ?? this.favourite,
);
}