copyWith method

Game copyWith({
  1. int? id,
  2. String? shortName,
  3. String? title,
  4. FormattedText? text,
  5. String? description,
  6. Photo? photo,
  7. Animation? animation,
})

Implementation

Game copyWith({
  int? id,
  String? shortName,
  String? title,
  FormattedText? text,
  String? description,
  Photo? photo,
  Animation? animation,
}) => Game(
  id: id ?? this.id,
  shortName: shortName ?? this.shortName,
  title: title ?? this.title,
  text: text ?? this.text,
  description: description ?? this.description,
  photo: photo ?? this.photo,
  animation: animation ?? this.animation,
);