EventPattern class final
A wildcard address used to select a set of EventAddress values.
The grammar is the same as EventAddress: EventAddress.separator joins
tokens, * matches one token, > matches one or more trailing tokens.
A pattern never compares Dart types; type filtering happens at delivery.
Constructors
- EventPattern(String value)
- EventPattern.parse(String value)
-
Parses a pattern. Equivalent to the constructor.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasWildcard → bool
-
Whether this pattern contains at least one wildcard token.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- specificity → int
-
The number of literal tokens; more specific patterns win.
no setter
-
tokens
→ List<
String> -
The path tokens derived from value.
no setter
- value → String
-
The pattern string.
final
Methods
-
matches(
EventAddress address) → bool -
Whether this pattern matches the concrete
address. -
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