HotlineSubscriptionManager class Null safety

Manages the subscriptions for a connection

Constructors

HotlineSubscriptionManager(Hotline connection)

Properties

connection Hotline
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subscriptions List<HotlineSubscription>
read-only

Methods

confirmSubscription(String identifier) → void
called when our confirmed callback is triggered by a 'confirm_subscription' event
create(dynamic channel, {required Function onReceived, required 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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
unsubscribe(HotlineSubscription subscription) → void
Unsubscribe from the messaging for a given channel

Operators

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