Device constructor

Device(
  1. String ip,
  2. int port
)

Implementation

Device(String ip, int port) : _ip = ip, _port = port{
  assert(ip != null);
  assert(port != null);
}