copyWith method

KPreviewMetaData copyWith({
  1. String? title,
  2. String? imageUrl,
  3. String? description,
  4. String? siteName,
  5. String? mediaType,
  6. String? favicon,
})

Implementation

KPreviewMetaData copyWith({
  String? title,
  String? imageUrl,
  String? description,
  String? siteName,
  String? mediaType,
  String? favicon,
}) {
  return KPreviewMetaData(
    title: title ?? this.title,
    description: description ?? this.description,
    imageUrl: imageUrl ?? this.imageUrl,
    favicon: favicon ?? this.favicon,
    mediaType: mediaType ?? this.mediaType,
    siteName: siteName ?? this.siteName,
  );
}