BluetoothScanFilterHelper class
A class with a helper function to create the correct js object from a filter.
Because of how the JS translation works leaving an item blank in BluetoothScanFilter's constructor. Would set these values to null instead of keeping them undefined. This would cause the API to complain. So to keep it at peace this workaround is used.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
createManufacturerDataObject(
int? companyIdentifier, Uint8List? dataPrefix, Uint8List? mask) → Object -
Create a BluetoothManufacturerDataFilter only setting the fields that
are not
null
this exists because Dart isn't able to set items toundefined
. -
createScanFilterObject(
List< String> ? services, String? name, String? namePrefix, List<BluetoothManufacturerDataFilter> ? manufacturerData, List<BluetoothServiceDataFilter> ? serviceData) → Object -
Create a new JS object with the fields for BluetoothScanFilter. But
instead of setting all the values to
null
it will just not add them keeping themundefined
. -
createServiceDataObject(
String? service, Uint8List? dataPrefix, Uint8List? mask) → Object -
Create a BluetoothServiceDataFilter only setting the fields that
are not
null
this exists because Dart isn't able to set items toundefined
.