getChannel static method
ClientChannel
getChannel({})
Returns a ClientChannel for grpc communication
Implementation
static ClientChannel getChannel(
{
String host = '10.0.2.2',
int port = 5154,
ChannelOptions options = const ChannelOptions(credentials: ChannelCredentials.insecure())
}) {
ClientChannel channel = ClientChannel(
host,
port: port,
options: options
);
return channel;
}