SubscriptionTopic class Null safety

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



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


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


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 non-existent method or property is accessed. [...]
toString() String
Returns a String representation of the topic.


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