copyWith method

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

Implementation

LostReasonData copyWith({  String? reason,
String? id,
bool isSelected = false,
}) => LostReasonData(  reason: reason ?? _reason,
id: id ?? _id,
isSelected: isSelected ?? _isSelected,
);