copyWith method
Tag
copyWith(
{ - int? id,
- DateTime? dbDateCreated,
- DateTime? dbDateUpdated,
- String? category,
- String? name,
- String? description,
- TagColor? color,
- bool? important,
- TagStatus? status,
- List<int>? allowedPositions,
})
Implementation
Tag copyWith(
{int? id,
DateTime? dbDateCreated,
DateTime? dbDateUpdated,
String? category,
String? name,
String? description,
enums.TagColor? color,
bool? important,
enums.TagStatus? status,
List<int>? allowedPositions}) {
return Tag(
id: id ?? this.id,
dbDateCreated: dbDateCreated ?? this.dbDateCreated,
dbDateUpdated: dbDateUpdated ?? this.dbDateUpdated,
category: category ?? this.category,
name: name ?? this.name,
description: description ?? this.description,
color: color ?? this.color,
important: important ?? this.important,
status: status ?? this.status,
allowedPositions: allowedPositions ?? this.allowedPositions);
}