GrpcClient class
A gRPC transport client.
Constructors
- GrpcClient(GrpcClientOptions options)
- Creates a gRPC client.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
Whether the client is connected.
no setter
- options → GrpcClientOptions
-
The transport client options.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Close the transport client connection.
-
connect(
) → Future< void> - Connect to the underlying transport.
-
emit(
{required String pattern, Uint8List? payload}) → Future< void> - Emit a fire-and-forget event.
-
getClient<
T extends Client> () → T? -
Gets a gRPC client of type
T. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
{required String pattern, required String id, Uint8List? payload}) → Future< ResponsePacket?> - Disconnect from the underlying transport.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited