copyWith method

UriOptions copyWith({
  1. String? defaultScheme,
  2. bool? coerceBareDomainsToDefaultScheme,
  3. bool? allowRelative,
})

Returns a copy with selected fields replaced.

Implementation

UriOptions copyWith({
  String? defaultScheme,
  bool? coerceBareDomainsToDefaultScheme,
  bool? allowRelative,
}) => UriOptions(
  defaultScheme: defaultScheme ?? this.defaultScheme,
  coerceBareDomainsToDefaultScheme:
      coerceBareDomainsToDefaultScheme ??
      this.coerceBareDomainsToDefaultScheme,
  allowRelative: allowRelative ?? this.allowRelative,
);