BluetoothCharacteristic constructor

BluetoothCharacteristic({
  1. String? uuid,
  2. String? remoteId,
  3. String? serviceUuid,
  4. String? secondaryServiceUuid,
  5. Iterable<BluetoothDescriptor>? descriptors,
  6. CharacteristicProperties? properties,
  7. List<int>? value,
})

Implementation

factory BluetoothCharacteristic({
  $core.String? uuid,
  $core.String? remoteId,
  $core.String? serviceUuid,
  $core.String? secondaryServiceUuid,
  $core.Iterable<BluetoothDescriptor>? descriptors,
  CharacteristicProperties? properties,
  $core.List<$core.int>? value,
}) {
  final _result = create();
  if (uuid != null) {
    _result.uuid = uuid;
  }
  if (remoteId != null) {
    _result.remoteId = remoteId;
  }
  if (serviceUuid != null) {
    _result.serviceUuid = serviceUuid;
  }
  if (secondaryServiceUuid != null) {
    _result.secondaryServiceUuid = secondaryServiceUuid;
  }
  if (descriptors != null) {
    _result.descriptors.addAll(descriptors);
  }
  if (properties != null) {
    _result.properties = properties;
  }
  if (value != null) {
    _result.value = value;
  }
  return _result;
}