URLPattern class

The interface matches URLs or parts of URLs against a pattern. The pattern can contain capturing groups that extract parts of the matched URL. More information about the syntax of patterns can be found on the API overview page: URL Pattern API

Note: This feature is available in Web Workers

Available extensions
Annotations
  • @experimental
  • @JS()
  • @staticInterop

Constructors

URLPattern([dynamic input, String? baseURL])
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hostname String

Available on URLPattern, provided by the PropsURLPattern extension

no setter
mHash String

Available on URLPattern, provided by the PropsURLPattern extension

no setter
password String

Available on URLPattern, provided by the PropsURLPattern extension

no setter
pathname String

Available on URLPattern, provided by the PropsURLPattern extension

no setter
port String

Available on URLPattern, provided by the PropsURLPattern extension

no setter
protocol String

Available on URLPattern, provided by the PropsURLPattern extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Available on URLPattern, provided by the PropsURLPattern extension

no setter
username String

Available on URLPattern, provided by the PropsURLPattern extension

no setter

Methods

exec([dynamic input, String? baseURL]) URLPatternResult?

Available on URLPattern, provided by the PropsURLPattern extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
test([dynamic input, String? baseURL]) bool

Available on URLPattern, provided by the PropsURLPattern extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited