RpcModule class final

Installs an RPC client into an application context.

Inheritance

Constructors

RpcModule(RpcClient client)
Installs a caller-owned client.
RpcModule.http({Uri? baseUri, HttpTransport? transport, Serializer? serializer, RpcHeadersProvider? headersProvider, String functionPath = '/__odroe/functions', int? maxRequestBodyBytes, int maxResponseFrameBytes = RpcClient.defaultMaxResponseFrameBytes})
Creates an HTTP-backed client and owns its default transport.
factory

Properties

client → RpcClient
The client registered by this module.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose(AppContext context) → void
Releases resources owned by this module.
override
initialize(AppContext context) → FutureOr<void>
Starts work after every module has registered its values.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(ModuleRegistry registry) → void
Registers the values and bindings owned by this module.
override
toString() → String
A string representation of this object.
inherited

Operators

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