toProto method Null safety

TcpDevice toProto()

Implementation

proto.TcpDevice toProto() =>
    proto.TcpDevice(ip: ip, port: port);