Channel class

Constructors

Channel(MethodChannel _methodChannel, String channelName, int _channelHandle)

Properties

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

Methods

addCommandListener(void callback(Command<String> response), {void onError(String error)?}) Future<void>
addJoinListener(Function callback, {void onError(String error)?}) Future<void>
addMessageListener<T>(void callback(T? response), {void onError(String error)?, String? selector}) Future<void>
addUserStatusListener(void callback(UserStatusResponse response), {void onError(String error)?}) Future<void>
isJoined() Future<bool?>
join() Future<void>
leave() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllMessageListeners() → void
removeCommandListener(Function callback) → void
removeJoinListener(Function callback) → void
removeMessageListeners({String? selector, Function? callback}) → void
removeUserStatusListener(Function callback) → void
removeUserStatusListeners() → void
sendCommand(String type, Object data) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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