copyWith method

  1. @override
LinkPreviewTypeExternalVideo copyWith({
  1. String? url,
  2. String? mimeType,
  3. int? width,
  4. int? height,
  5. int? duration,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
LinkPreviewTypeExternalVideo copyWith({
  String? url,
  String? mimeType,
  int? width,
  int? height,
  int? duration,
}) => LinkPreviewTypeExternalVideo(
  url: url ?? this.url,
  mimeType: mimeType ?? this.mimeType,
  width: width ?? this.width,
  height: height ?? this.height,
  duration: duration ?? this.duration,
);