DomainPattern class final

A route's host: admin.example.com or {tenant}.example.com, where {tenant:slug} also names the column of a model binding. A parameter is one label, so it cannot swallow a dot.

Constructors

DomainPattern(String source)
factory

Properties

fields → Map<String, String>
The columns of {tenant:slug}, by parameter.
final
hashCode → int
The hash code for this object.
no setterinherited
names → List<String>
The parameters, in order.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source → String
final

Methods

fill(Map<String, Object?> params, Never missing(String name)) → String
The host with params filled in; null values are for missing.
match(String host) → Map<String, String>?
The parameters of host, or null when it does not match.
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

Static Methods

normalize(String host) → String
host without its port or the root dot, in lower case.