copyWith method

PrintCategory copyWith({
  1. String? name,
  2. int? position,
})

Implementation

PrintCategory copyWith({String? name, int? position}) => PrintCategory(
  id: id,
  name: name ?? this.name,
  position: position ?? this.position,
);