RequestOptionsBuilder class

A builder to help setup the correct request options for a new device.

See: FlutterWebBluetooth.requestDevice.

Constructors

RequestOptionsBuilder(List<RequestFilterBuilder> requestFilters, {List<RequestFilterBuilder>? exclusionFilters, List<String>? optionalServices, List? optionalManufacturerData})
Tell the browser to only accept device matching the requestFilters. A device has to only match one filter, so if you support multiple device types then you add a filter for each device type.
RequestOptionsBuilder.acceptAllDevices({List<String>? optionalServices, List? optionalManufacturerData})
Tell the browser to just accept all devices.

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
toRequestOptions() RequestOptions
Convert the input requests to a RequestOptions object needed for the web navigator request.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited