RpcBatch class
- Inheritance
- Available extensions
Constructors
-
RpcBatch([List<
RpcObjectType> ? rpcTypes]) -
RpcBatch.fromMeta(List<
RpcMeta> meta) -
Converts
meta
to RpcBatchfactory
Properties
Methods
-
add(
RpcObjectType rpcType) → void - Append RpcObjectType to the current batch
-
addAll(
List< RpcObjectType> rpcTypes) → void -
Append
rpcTypes
toinstance.rpcTypes
-
encode(
{String postfix = '%SEP%'}) → List< int> -
Encodes RpcObject to bytes list
override
-
getAllResponses(
) → List< RpcResponse> -
Returns all
RpcResponses
inside the current batch -
handle(
{RpcRequestHandler? onRequestAll, RpcRequestHandler? onRequest, NotificationHandler? onNotification, RpcResponseHandler? onResponse, ResponseResultHandler? onResult, ResponseErrorHandler? onError}) → Future< RpcBatch> -
This method is loops throw all objects in rpcTypes and ease handling them
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMeta(
) → List< RpcMeta> - Converts current batch to a List of RpcMeta
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited