copyWith method

UnitType copyWith({
  1. String? id,
  2. String? name,
  3. bool isSelected = false,
})

Implementation

UnitType copyWith({  String? id,
  String? name,
  bool isSelected = false,
}) => UnitType(  id: id ?? _id,
  name: name ?? _name,
  isSelected: isSelected ?? _isSelected,
);