copyWith method

  1. @override
InternalLinkTypeInstantView copyWith({
  1. String? url,
  2. String? fallbackUrl,
  3. dynamic extra,
  4. int? clientId,
})
override

Copy model with modified properties.

Properties:

  • url: URL to be passed to getWebPageInstantView
  • fallback_url: An URL to open if getWebPageInstantView fails

Implementation

@override
InternalLinkTypeInstantView copyWith({
  String? url,
  String? fallbackUrl,
  dynamic extra,
  int? clientId,
}) =>
    InternalLinkTypeInstantView(
      url: url ?? this.url,
      fallbackUrl: fallbackUrl ?? this.fallbackUrl,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );