copyWith method

ContentState copyWith({
  1. int? id,
  2. String? name,
  3. String? color,
})

Implementation

ContentState copyWith({int? id, String? name, String? color}) {
  return ContentState(
    id: id ?? this.id,
    name: name ?? this.name,
    color: color ?? this.color,
  );
}