Channel class

Constructors

Channel(String name)

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(String eventName, void onEvent(PusherEvent? event)) Future<void>
Binds a callback (onEvent) to an event. The callback will be notified whenever the specified eventName is received on this channel.
cancelEventChannelStream() → void
This method will close the entire event channel stream which is why it should only be used by PusherClient
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerListener(String classId, dynamic method(dynamic)) → void
Add a listener to the event channel stream for pusher, any class that extends StreamHandler should use this method.
inherited
toString() String
A string representation of this object.
inherited
trigger(String eventName, dynamic data) Future<void>
Once subscribed it is possible to trigger client events on a private channel as long as client events have been activated for the a Pusher application. There are a number of restrictions enforced with client events. For full details see the documentation
unbind(String eventName) Future<void>
Unbinds the callback from the given eventName, in the scope of the channel being acted upon

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

classId → const String