createManufacturerDataObject static method
Create a BluetoothManufacturerDataFilter only setting the fields that
are not null
this exists because Dart isn't able to set items to
undefined
.
No check is done here so you may end up with an empty object.
Implementation
static Object createManufacturerDataObject(final int? companyIdentifier,
final Uint8List? dataPrefix, final Uint8List? mask) {
final jsObject = _JSUtil.newObject();
if (companyIdentifier != null) {
_JSUtil.setProperty(jsObject, "companyIdentifier", companyIdentifier);
}
_fillDataFilter(jsObject, dataPrefix, mask);
return jsObject;
}