copyWith method

FootballPlayerData copyWith({
  1. int? id,
  2. String? fullName,
  3. DateTime? birthday,
  4. String? countryId,
  5. Value<String?> imagePath = const Value.absent(),
  6. Value<String?> description = const Value.absent(),
})

Implementation

FootballPlayerData copyWith({
  int? id,
  String? fullName,
  DateTime? birthday,
  String? countryId,
  Value<String?> imagePath = const Value.absent(),
  Value<String?> description = const Value.absent(),
}) => FootballPlayerData(
  id: id ?? this.id,
  fullName: fullName ?? this.fullName,
  birthday: birthday ?? this.birthday,
  countryId: countryId ?? this.countryId,
  imagePath: imagePath.present ? imagePath.value : this.imagePath,
  description: description.present ? description.value : this.description,
);