notify property

bool notify

Check to see if notify is available in this characteristic. If this is true then you can use WebBluetoothRemoteGATTCharacteristic.startNotifications. Though it may still throw a SecurityError

Will return false if the field doesn't exist.

See:

Implementation

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