copyWith method

MessageEffect copyWith({
  1. int? id,
  2. Sticker? staticIcon,
  3. String? emoji,
  4. bool? isPremium,
  5. MessageEffectType? type,
})

Implementation

MessageEffect copyWith({
  int? id,
  Sticker? staticIcon,
  String? emoji,
  bool? isPremium,
  MessageEffectType? type,
}) => MessageEffect(
  id: id ?? this.id,
  staticIcon: staticIcon ?? this.staticIcon,
  emoji: emoji ?? this.emoji,
  isPremium: isPremium ?? this.isPremium,
  type: type ?? this.type,
);