copyWith method

GiftsForResale copyWith({
  1. int? totalCount,
  2. List<GiftForResale>? gifts,
  3. List<UpgradedGiftModelCount>? models,
  4. List<UpgradedGiftSymbolCount>? symbols,
  5. List<UpgradedGiftBackdropCount>? backdrops,
  6. String? nextOffset,
  7. dynamic extra,
  8. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

GiftsForResale copyWith({
  int? totalCount,
  List<GiftForResale>? gifts,
  List<UpgradedGiftModelCount>? models,
  List<UpgradedGiftSymbolCount>? symbols,
  List<UpgradedGiftBackdropCount>? backdrops,
  String? nextOffset,
  dynamic extra,
  int? clientId,
}) => GiftsForResale(
  totalCount: totalCount ?? this.totalCount,
  gifts: gifts ?? this.gifts,
  models: models ?? this.models,
  symbols: symbols ?? this.symbols,
  backdrops: backdrops ?? this.backdrops,
  nextOffset: nextOffset ?? this.nextOffset,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);