MqttClientTopicFilter class

This class allows specific topics to be listened for. It essentially acts as a bandpass filter for the topics you are interested in if you subscribe to more than one topic or use wildcard topics. Simply construct it, and listen to its message stream rather than that of the client. Note this class will only filter valid receive topics so if you filter on wildcard topics for instance, which you should only subscribe to, it will always generate a no match.

Constructors

MqttClientTopicFilter(String _topic, Stream<List<MqttReceivedMessage<MqttMessage?>>?>? _clientUpdates)
Construction

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topic String
The topic on which to filter
no setter
updates Stream<List<MqttReceivedMessage<MqttMessage?>>>
The stream on which all matching topic updates are published to
no setter

Methods

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