read property

bool get read

Check to see if read is available in this characteristic.

Will return false if the field doesn't exist.

If this is true then you can use WebBluetoothRemoteGATTCharacteristic.readValue. Though it may still throw a SecurityError.

See:

Implementation

bool get read {
  if (!hasRead) {
    return false;
  }
  final result = _JSUtil.getProperty(_jsObject, "read");
  if (result is bool) {
    return result;
  }
  return false;
}