RpcBatch class

Inheritance
Available extensions

Constructors

RpcBatch([List<RpcObjectType>? rpcTypes])
RpcBatch.fromMeta(List<RpcMeta> meta)
Converts meta to RpcBatch
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isEmpty bool
Returns true if rpcTypes is empty
no setter
length int
no setter
rpcTypes List<RpcObjectType>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(RpcObjectType rpcType) → void
Append RpcObjectType to the current batch
addAll(List<RpcObjectType> rpcTypes) → void
Append rpcTypes to instance.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