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
paramsfilled in;nullvalues are formissing. -
match(
String host) → Map< String, String> ? -
The parameters of
host, ornullwhen 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