isPrimary property
bool
get
isPrimary
Check if the service is a primary service (top level).
Not all browser versions support this call yet. Use hasIsPrimary to see if the call is supported.
- May throw NativeAPINotImplementedError if the method does not exist.
See:
Implementation
bool get isPrimary {
var isPrimary = _isPrimary;
if (isPrimary != null) {
return isPrimary;
}
if (!hasIsPrimary()) {
throw NativeAPINotImplementedError(
"BluetoothRemoteGATTService.isPrimary");
}
isPrimary = _JSUtil.getProperty(_jsObject, "isPrimary");
if (isPrimary != null) {
_isPrimary = isPrimary;
return isPrimary;
}
return false;
}