copyWith method
MessageAnimation
copyWith({
- Animation? animation,
- FormattedText? caption,
- bool? showCaptionAboveMedia,
- bool? hasSpoiler,
- bool? isSecret,
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
MessageAnimation copyWith({
Animation? animation,
FormattedText? caption,
bool? showCaptionAboveMedia,
bool? hasSpoiler,
bool? isSecret,
}) => MessageAnimation(
animation: animation ?? this.animation,
caption: caption ?? this.caption,
showCaptionAboveMedia: showCaptionAboveMedia ?? this.showCaptionAboveMedia,
hasSpoiler: hasSpoiler ?? this.hasSpoiler,
isSecret: isSecret ?? this.isSecret,
);