copyWith method

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

Implementation

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