FlutterWebBluetoothCentral constructor

FlutterWebBluetoothCentral()

Implementation

FlutterWebBluetoothCentral()
    : _status = FlutterWebBluetooth.instance.isBluetoothApiSupported
          ? BleCentralStatus.unknown
          : BleCentralStatus.unsupportedBrowser {
  if (_status == BleCentralStatus.unsupportedBrowser) return;
  FlutterWebBluetooth.instance.isAvailable.listen(_updateState);
}