WriteCharacteristicRequest constructor

WriteCharacteristicRequest({
  1. String? remoteId,
  2. String? characteristicUuid,
  3. String? serviceUuid,
  4. String? secondaryServiceUuid,
  5. WriteCharacteristicRequest_WriteType? writeType,
  6. List<int>? value,
})

Implementation

factory WriteCharacteristicRequest({
  $core.String? remoteId,
  $core.String? characteristicUuid,
  $core.String? serviceUuid,
  $core.String? secondaryServiceUuid,
  WriteCharacteristicRequest_WriteType? writeType,
  $core.List<$core.int>? value,
}) {
  final _result = create();
  if (remoteId != null) {
    _result.remoteId = remoteId;
  }
  if (characteristicUuid != null) {
    _result.characteristicUuid = characteristicUuid;
  }
  if (serviceUuid != null) {
    _result.serviceUuid = serviceUuid;
  }
  if (secondaryServiceUuid != null) {
    _result.secondaryServiceUuid = secondaryServiceUuid;
  }
  if (writeType != null) {
    _result.writeType = writeType;
  }
  if (value != null) {
    _result.value = value;
  }
  return _result;
}