copyWith method

  1. @override
EmojiStatusTypeUpgradedGift copyWith({
  1. int? upgradedGiftId,
  2. String? giftTitle,
  3. String? giftName,
  4. int? modelCustomEmojiId,
  5. int? symbolCustomEmojiId,
  6. UpgradedGiftBackdropColors? backdropColors,
})
override

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

Implementation

@override
EmojiStatusTypeUpgradedGift copyWith({
  int? upgradedGiftId,
  String? giftTitle,
  String? giftName,
  int? modelCustomEmojiId,
  int? symbolCustomEmojiId,
  UpgradedGiftBackdropColors? backdropColors,
}) => EmojiStatusTypeUpgradedGift(
  upgradedGiftId: upgradedGiftId ?? this.upgradedGiftId,
  giftTitle: giftTitle ?? this.giftTitle,
  giftName: giftName ?? this.giftName,
  modelCustomEmojiId: modelCustomEmojiId ?? this.modelCustomEmojiId,
  symbolCustomEmojiId: symbolCustomEmojiId ?? this.symbolCustomEmojiId,
  backdropColors: backdropColors ?? this.backdropColors,
);