EventAddress class final
The stable address of an event.
An address is a user-supplied string; it is the routing key and the wire contract. It carries no Dart type name. The grammar is fixed: separator joins path tokens, singleWildcard matches one token and tailWildcard matches one or more trailing tokens. A concrete address may not contain wildcards; use EventPattern for a wildcard selector.
Equality is by value: two addresses with the same string are the same address, regardless of how they were built.
Constructors
- EventAddress(String value)
- EventAddress.parse(String value)
-
Parses an exact address. Equivalent to the constructor.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tokens
→ List<
String> -
The path tokens derived from value. Not a constructor input.
no setter
- value → String
-
The address string; the identity of this address.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- separator → const String
- The grammar separator; this is a rule, not a configuration.
- singleWildcard → const String
- Matches exactly one path token.
- tailWildcard → const String
- Matches one or more trailing path tokens; it must be the last token.