copyWith method

MessageAnimation copyWith({
  1. Animation? animation,
  2. FormattedText? caption,
  3. bool? showCaptionAboveMedia,
  4. bool? hasSpoiler,
  5. bool? isSecret,
})

Implementation

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,
);