copyWith method

MessageWidget copyWith({
  1. int? width,
  2. int? height,
  3. String? html,
  4. String? publicData,
  5. String? chatData,
  6. int? widgetId,
  7. FormattedText? caption,
  8. bool? showCaptionAboveMedia,
  9. bool? isCopy,
  10. bool? canSendQueries,
  11. bool? canSendBackgroundQueries,
})

Implementation

MessageWidget copyWith({
  int? width,
  int? height,
  String? html,
  String? publicData,
  String? chatData,
  int? widgetId,
  FormattedText? caption,
  bool? showCaptionAboveMedia,
  bool? isCopy,
  bool? canSendQueries,
  bool? canSendBackgroundQueries,
}) =>
    MessageWidget(
      width: width ?? this.width,
      height: height ?? this.height,
      html: html ?? this.html,
      publicData: publicData ?? this.publicData,
      chatData: chatData ?? this.chatData,
      widgetId: widgetId ?? this.widgetId,
      caption: caption ?? this.caption,
      showCaptionAboveMedia:
          showCaptionAboveMedia ?? this.showCaptionAboveMedia,
      isCopy: isCopy ?? this.isCopy,
      canSendQueries: canSendQueries ?? this.canSendQueries,
      canSendBackgroundQueries:
          canSendBackgroundQueries ?? this.canSendBackgroundQueries,
    );