copyWith method

  1. @override
MessageExtendedMediaPreview copyWith({
  1. int? width,
  2. int? height,
  3. int? duration,
  4. Minithumbnail? minithumbnail,
  5. FormattedText? caption,
})
override

Implementation

@override
MessageExtendedMediaPreview copyWith({
  int? width,
  int? height,
  int? duration,
  Minithumbnail? minithumbnail,
  FormattedText? caption,
}) =>
    MessageExtendedMediaPreview(
      width: width ?? this.width,
      height: height ?? this.height,
      duration: duration ?? this.duration,
      minithumbnail: minithumbnail ?? this.minithumbnail,
      caption: caption ?? this.caption,
    );