Channel class

Constructors

Channel({required String name, required LaravelFlutterPusher pusher, required MethodChannel channel})

Properties

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

Methods

bind(String eventName, Function onEvent) Future
Bind to listen for events sent on the given channel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
trigger(String eventName) Future
Trigger eventName (will be prefixed with "client-" in case you have not) for Channel.
unbind(String eventName) Future

Operators

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