copyWith method

InputMessageText copyWith({
  1. FormattedText? text,
  2. LinkPreviewOptions? linkPreviewOptions,
  3. bool? clearDraft,
})

Implementation

InputMessageText copyWith({
  FormattedText? text,
  LinkPreviewOptions? linkPreviewOptions,
  bool? clearDraft,
}) =>
    InputMessageText(
      text: text ?? this.text,
      linkPreviewOptions: linkPreviewOptions ?? this.linkPreviewOptions,
      clearDraft: clearDraft ?? this.clearDraft,
    );