CharacteristicProperties constructor

CharacteristicProperties({
  1. bool? broadcast,
  2. bool? read,
  3. bool? writeWithoutResponse,
  4. bool? write,
  5. bool? notify,
  6. bool? indicate,
  7. bool? authenticatedSignedWrites,
  8. bool? extendedProperties,
  9. bool? notifyEncryptionRequired,
  10. bool? indicateEncryptionRequired,
})

Implementation

factory CharacteristicProperties({
  $core.bool? broadcast,
  $core.bool? read,
  $core.bool? writeWithoutResponse,
  $core.bool? write,
  $core.bool? notify,
  $core.bool? indicate,
  $core.bool? authenticatedSignedWrites,
  $core.bool? extendedProperties,
  $core.bool? notifyEncryptionRequired,
  $core.bool? indicateEncryptionRequired,
}) {
  final _result = create();
  if (broadcast != null) {
    _result.broadcast = broadcast;
  }
  if (read != null) {
    _result.read = read;
  }
  if (writeWithoutResponse != null) {
    _result.writeWithoutResponse = writeWithoutResponse;
  }
  if (write != null) {
    _result.write = write;
  }
  if (notify != null) {
    _result.notify = notify;
  }
  if (indicate != null) {
    _result.indicate = indicate;
  }
  if (authenticatedSignedWrites != null) {
    _result.authenticatedSignedWrites = authenticatedSignedWrites;
  }
  if (extendedProperties != null) {
    _result.extendedProperties = extendedProperties;
  }
  if (notifyEncryptionRequired != null) {
    _result.notifyEncryptionRequired = notifyEncryptionRequired;
  }
  if (indicateEncryptionRequired != null) {
    _result.indicateEncryptionRequired = indicateEncryptionRequired;
  }
  return _result;
}