GRPCInfo class

Contains the information about the GRPC endpoint

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

GRPCInfo({required String host, int port = 9090, ChannelCredentials credentials = const ChannelCredentials.insecure(), String? webHost, int webPort = 443, bool webTransportSecure = true})
GRPCInfo.fromJson(Map<String, dynamic> json)
factory

Properties

credentials → ChannelCredentials
final
hashCode int
The hash code for this object.
no setterinherited
host String
final
port int
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
webHost String?
final
webPort int
final
webTransportSecure bool
final

Methods

getChannel() → GrpcOrGrpcWebClientChannel
Creates a new ClientChannel using the optional given options.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.

Operators

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