copyWith method

InputMessageAnimation copyWith({
  1. InputAnimation? animation,
  2. FormattedText? caption,
  3. bool? showCaptionAboveMedia,
  4. bool? hasSpoiler,
})

Implementation

InputMessageAnimation copyWith({
  InputAnimation? animation,
  FormattedText? caption,
  bool? showCaptionAboveMedia,
  bool? hasSpoiler,
}) =>
    InputMessageAnimation(
      animation: animation ?? this.animation,
      caption: caption ?? this.caption,
      showCaptionAboveMedia:
          showCaptionAboveMedia ?? this.showCaptionAboveMedia,
      hasSpoiler: hasSpoiler ?? this.hasSpoiler,
    );