getChannel static method

ClientChannel getChannel({
  1. String host = '10.0.2.2',
  2. int port = 5154,
  3. ChannelOptions options = const ChannelOptions(credentials: ChannelCredentials.insecure()),
})

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;
}