APIModuleProxyCaller<T> class

A APIModuleProxy caller for a specific module (moduleName).

Extends a ClassProxyDelegateListener that delegates to targetListener.

Inheritance

Constructors

APIModuleProxyCaller(Object target, {required String moduleName, bool? responsesAsJson, APIModuleProxyResponseErrorHandler? errorHandler})

Properties

hashCode int
The hash code for this object.
no setterinherited
moduleName String
The APIModule name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetListener ClassProxyListener<T>
The target listener that will receive the calls.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCall(T instance, String methodName, Map<String, dynamic> parameters, TypeReflection? returnType) Object?
Calls made through a ClassProxy will be intercepted by onCall implementation.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

registerTargetResolver(APIModuleProxyTargetResolver targetResolver) bool
Registers a target resolver. See registerTargetResolver and resolveTarget.
resolveTarget<T>(Object target, {String? moduleName, bool? responsesAsJson, APIModuleProxyResponseErrorHandler? errorHandler}) ClassProxyListener<T>
Resolves target to a ClassProxyListener. See registerTargetResolver.
unregisterTargetResolver(APIModuleProxyTargetResolver targetResolver) bool
Unregisters a target resolver. See registerTargetResolver and resolveTarget.