copyWith method

GetLinkPreview copyWith({
  1. FormattedText? text,
  2. LinkPreviewOptions? linkPreviewOptions,
})

Implementation

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