copyWith method
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,
);