HotlineSubscriptionManager class

Manages the subscriptions for a connection


HotlineSubscriptionManager(Hotline connection)


connection Hotline
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptions List<HotlineSubscription>
no setter


confirmSubscription(String identifier) → void
called when our confirmed callback is triggered by a 'confirm_subscription' event
create(dynamic channel, {Function? onReceived, Function? onConfirmed, Function? onUnsubscribed, Function? onRejected}) HotlineSubscription
Create a new subscription to a channel, using a dynamic channel type to allow for simple String subscriptions or complex channels with parameters.
getAllSubscriptions(String identifier) List<HotlineSubscription>
return a list of all subscriptions that match a given identifier
getSubscription(String identifier) HotlineSubscription?
Find a subscription from the collection by looking up its identifier
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
suspendAll() → void
toString() String
A string representation of this object.
unsubscribe(HotlineSubscription subscription) → void
Unsubscribe from the messaging for a given channel
unsuspendAll() → void


operator ==(Object other) bool
The equality operator.
operator [](int i) HotlineSubscription
allow for hotline.consumer.subscriptions[0]