SubscriptionTopic class

Implementation of a Subscription topic that performs additional validations of topics that are subscribed to.

Inheritance

Constructors

SubscriptionTopic(String rawTopic)
Creates a new instance of a rawTopic from a topic string.

Properties

hashCode int
Serves as a hash function for a topics.
no setterinherited
hasWildcards bool
Returns true if there are any wildcards in the specified rawTopic, otherwise false.
no setterinherited
rawTopic String
Raw topic
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topicFragments List<String>
Topic fragments
getter/setter pairinherited

Methods

matches(PublicationTopic matcheeTopic) bool
Checks if the rawTopic matches the supplied rawTopic using the MQTT rawTopic matching rules. Returns true if the rawTopic matches based on the MQTT rawTopic matching rules, otherwise false.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns a String representation of the topic.
inherited

Operators

operator ==(Object other) bool
Checks if one topic equals another topic exactly.
inherited