BluetoothServiceDataFilter class

The js object for Bluetooth scan filters. At least one of the filter must be set, the rest can be left undefined.

See:

Annotations
  • @JS()
  • @anonymous

Constructors

BluetoothServiceDataFilter({String? service, Object? dataPrefix, Object? mask})
The constructor of the request filter.
factory

Properties

dataPrefix Object?
is a uint8 (or byte) array of the first n bytes of the UUID that should exist for the service. For example if you have the UUID D273346A-... then the prefix of D273 should match
no setter
hashCode int
The hash code for this object.
no setterinherited
mask Object?
Is a uint8 (or byte) array of the bits that should be matched against. The original UUID will be bit wise and (&) as well as the dataPrefix to the same mask. These two will then be compared to be equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service String?
may be a UUID of the service that should exist.
no setter

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