copyWith method

  1. @override
LinkPreviewTypePhoto copyWith({
  1. Photo? photo,
})
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
LinkPreviewTypePhoto copyWith({Photo? photo}) =>
    LinkPreviewTypePhoto(photo: photo ?? this.photo);