RequestOptions constructor

RequestOptions({
  1. List<BluetoothScanFilter> filters,
  2. List<BluetoothScanFilter> exclusionFilters,
  3. List optionalServices,
  4. List optionalManufacturerData,
  5. bool acceptAllDevices,
})

A constructor for new request options.

Because of how the conversion to JS works, there is a difference between leaving an item blank in this constructor and setting it to null.

Implementation

external factory RequestOptions(
    {final List<BluetoothScanFilter> filters,
    final List<BluetoothScanFilter> exclusionFilters,
    final List<dynamic> optionalServices,
    final List<dynamic> optionalManufacturerData,
    final bool acceptAllDevices});