CallBacksController class

Manage our channels instances and listeners by targetMethod callback registered.

Implemented types

Constructors

CallBacksController()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
lastAddedcallBackReferenceId int
no setter
registeredCallbacksCount int
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disposeActiveCallbackListener({required String targetMethod, required CancelListening listenerCancelation(Message msg)}) Future<void>
If listenerCancelation method is provided It will dispose the current targetMethod listener. Can be used like a restart on our actual callback listener, and avoid duplicated listeners.
disposeCallBack(int callBackReferenceId) → void
override
isAlreadyRegistered({required String targetMethod}) bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
platformCallBackMethodHandlerSetup(MethodCall call) Future
override
setCallBack({required CallBackMethod<MirrorMethodCall, Error> call}) → void
If call setCallBack to a targetMethod already registered, then will dispose the actual callback listener before continue.
override
toString() String
A string representation of this object.
inherited

Operators

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