json_rpc_codegen
library
Classes
Chain
A chain of stack traces.
Client
A JSON-RPC 2.0 client.
ClientBase
A base class for all generated JSON RPC clients that wraps the Client
ClientDefaults
Configures the class or method to apply default values on the client side.
FutureOr <T >
A type representing values that are either Future<T>
or T
.
JsonRpc
Build annotation for JSON-RPC enabled interfaces
Parameter
A wrapper for a single parameter to a server method.
Parameters
A wrapper for the parameters to a server method.
Peer
A JSON-RPC 2.0 client and server.
PeerBase
A base class for all generated JSON RPC peers that wraps the Peer .
Server
A JSON-RPC 2.0 server.
ServerBase
A base class for all generated JSON RPC servers that wraps the Server .
ServerDefaults
Configures the class or method to apply default values on the server side.
StreamChannel <T >
An abstract class representing a two-way communication channel.
StreamController <T >
A controller with the stream it controls.
StreamSubscription <T >
A subscription on events from a Stream .
Constants
clientDefaults
→ const ServerDefaults
Configures the class or method to apply default values on the client side.
jsonRpc
→ const JsonRpc
Build annotation for JSON-RPC enabled interfaces
jsonRpcMixins
→ const JsonRpc
Build annotation for JSON-RPC enabled interfaces (mixins only)
mustCallSuper
→ const _MustCallSuper
Used to annotate an instance member (method, getter, setter, operator, or
field) m
. Indicates that every invocation of a member that overrides m
must also invoke m
. In addition, every method that overrides m
is
implicitly annotated with this same annotation.
protected
→ const _Protected
Used to annotate an instance member in a class or mixin which is meant to
be visible only within the declaring library, and to other instance members
of the class or mixin, and their subtypes.
serverDefaults
→ const ServerDefaults
Configures the class or method to apply default values on the server side.
visibleForOverriding
→ const _VisibleForOverriding
Used to annotate an instance member that was made public so that it could be
overridden but that is not intended to be referenced from outside the
defining library.
Functions
unawaited (Future <void > ? future )
→ void
Explicitly ignores a future.
Typedefs
ErrorCallback
= void Function(dynamic error , dynamic stackTrace )
A callback for unhandled exceptions.
Exceptions / Errors
RpcException
An exception from a JSON-RPC server that can be translated into an error
response.