copyWith method

TMDBMovie copyWith({
  1. int? id,
  2. String? title,
  3. int? year,
  4. String? producer,
  5. String? synopsys,
  6. String? thumbnailUrl,
  7. int? tmdbId,
})

Implementation

TMDBMovie copyWith({
  int? id,
  String? title,
  int? year,
  String? producer,
  String? synopsys,
  String? thumbnailUrl,
  int? tmdbId,
}) =>
    TMDBMovie(
      id: id ?? this.id,
      title: title ?? this.title,
      year: year ?? this.year,
      producer: producer ?? this.producer,
      synopsys: synopsys ?? this.synopsys,
      thumbnailUrl: thumbnailUrl ?? this.thumbnailUrl,
      tmdbId: tmdbId ?? this.tmdbId,
    );