copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
LinkPreviewOptions copyWith({
bool? isDisabled,
String? url,
bool? forceSmallMedia,
bool? forceLargeMedia,
bool? showAboveText,
}) =>
LinkPreviewOptions(
isDisabled: isDisabled ?? this.isDisabled,
url: url ?? this.url,
forceSmallMedia: forceSmallMedia ?? this.forceSmallMedia,
forceLargeMedia: forceLargeMedia ?? this.forceLargeMedia,
showAboveText: showAboveText ?? this.showAboveText,
);