BluetoothCharacteristic constructor
BluetoothCharacteristic({
- String? uuid,
- String? remoteId,
- String? serviceUuid,
- String? secondaryServiceUuid,
- Iterable<
BluetoothDescriptor> ? descriptors, - CharacteristicProperties? properties,
- 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;
}