copyWith method

LinkPreview copyWith({
  1. String? url,
  2. String? displayUrl,
  3. String? siteName,
  4. String? title,
  5. FormattedText? description,
  6. String? author,
  7. LinkPreviewType? type,
  8. bool? hasLargeMedia,
  9. bool? showLargeMedia,
  10. bool? showMediaAboveDescription,
  11. bool? skipConfirmation,
  12. bool? showAboveText,
  13. int? instantViewVersion,
})

Implementation

LinkPreview copyWith({
  String? url,
  String? displayUrl,
  String? siteName,
  String? title,
  FormattedText? description,
  String? author,
  LinkPreviewType? type,
  bool? hasLargeMedia,
  bool? showLargeMedia,
  bool? showMediaAboveDescription,
  bool? skipConfirmation,
  bool? showAboveText,
  int? instantViewVersion,
}) =>
    LinkPreview(
      url: url ?? this.url,
      displayUrl: displayUrl ?? this.displayUrl,
      siteName: siteName ?? this.siteName,
      title: title ?? this.title,
      description: description ?? this.description,
      author: author ?? this.author,
      type: type ?? this.type,
      hasLargeMedia: hasLargeMedia ?? this.hasLargeMedia,
      showLargeMedia: showLargeMedia ?? this.showLargeMedia,
      showMediaAboveDescription:
          showMediaAboveDescription ?? this.showMediaAboveDescription,
      skipConfirmation: skipConfirmation ?? this.skipConfirmation,
      showAboveText: showAboveText ?? this.showAboveText,
      instantViewVersion: instantViewVersion ?? this.instantViewVersion,
    );