copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
AnimatedEmoji copyWith({
Sticker? Function()? sticker,
int? stickerWidth,
int? stickerHeight,
int? fitzpatrickType,
File? Function()? sound,
dynamic extra,
int? clientId,
}) =>
AnimatedEmoji(
sticker: sticker != null ? sticker() : this.sticker,
stickerWidth: stickerWidth ?? this.stickerWidth,
stickerHeight: stickerHeight ?? this.stickerHeight,
fitzpatrickType: fitzpatrickType ?? this.fitzpatrickType,
sound: sound != null ? sound() : this.sound,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);