P2PBasisDevice constructor
P2PBasisDevice(})
Implementation
P2PBasisDevice(
String id, this.username, this.password, String name, String model,
{String? clientId})
: _clientId = clientId,
super(id, name, model) {
if (clientId != null) {
_localClientId = true;
}
RegExp exp = RegExp(r'^[a-zA-Z]{1,}\d{7,}.*[a-zA-Z]$');
isVirtualId = exp.hasMatch(id);
_controller.stream.asyncMap(_createClientPtr).listen((event) {});
_controller.add(Completer());
}