copyWith method

GetWebPageInstantView copyWith({
  1. String? url,
  2. bool? onlyLocal,
})

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

Implementation

GetWebPageInstantView copyWith({String? url, bool? onlyLocal}) =>
    GetWebPageInstantView(
      url: url ?? this.url,
      onlyLocal: onlyLocal ?? this.onlyLocal,
    );