NotLeaderException constructor

NotLeaderException(
  1. String host,
  2. int port, {
  3. GrpcError? cause,
})

Constructs a new instance of NotLeaderException from given cause

Implementation

NotLeaderException(String host, int port, {this.cause})
    : leader = EndPoint()
        ..address = host
        ..port = port;