copyWith method

TrendingStickerSets copyWith({
  1. int? totalCount,
  2. List<StickerSetInfo>? sets,
  3. bool? isPremium,
  4. dynamic extra,
  5. 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

TrendingStickerSets copyWith({
  int? totalCount,
  List<StickerSetInfo>? sets,
  bool? isPremium,
  dynamic extra,
  int? clientId,
}) => TrendingStickerSets(
  totalCount: totalCount ?? this.totalCount,
  sets: sets ?? this.sets,
  isPremium: isPremium ?? this.isPremium,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);