copyWith method

Data copyWith({
  1. String? id,
  2. String? flatType,
  3. String? category,
  4. bool isSelected = false,
  5. bool isLoading = false,
})

Implementation

Data copyWith({  String? id,
  String? flatType,
  String? category,
  bool isSelected = false,
  bool isLoading = false,
}) => Data(  id: id ?? _id,
  flatType: flatType ?? _flatType,
  category: category ?? _category,
  isSelected: isSelected ?? _isSelected,
  isLoading: isLoading ?? _isLoading,
);