UriOptions class
Options that control URI parsing and coercion.
- Annotations
Constructors
- UriOptions({String? defaultScheme, bool coerceBareDomainsToDefaultScheme = false, bool allowRelative = true})
-
Creates a new UriOptions.
const
Properties
- allowRelative → bool
-
Determines whether relative URIs are accepted.
final
- coerceBareDomainsToDefaultScheme → bool
-
Enables strict coercion of bare domains to defaultScheme.
final
- defaultScheme → String?
-
The scheme to prepend to bare domains if coerceBareDomainsToDefaultScheme is enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? defaultScheme, bool? coerceBareDomainsToDefaultScheme, bool? allowRelative}) → UriOptions - Returns a copy with selected fields replaced.
-
merge(
UriOptions other) → UriOptions -
Returns a new UriOptions that prefers
other's settings. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited