primaryService property
BluetoothService?
get
primaryService
(for secondary services) get the primary service it is associated with
Implementation
BluetoothService? get primaryService {
if (primaryServiceUuid != null) {
if (FlutterBluePlus._knownServices[remoteId] != null) {
for (var s in FlutterBluePlus._knownServices[remoteId]!.services) {
if (s.serviceUuid == primaryServiceUuid) {
return BluetoothService.fromProto(s);
}
}
}
}
return null;
}