We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1300f23 commit 8bc647cCopy full SHA for 8bc647c
lib/src/flutter_blue.dart
@@ -30,10 +30,11 @@ class FlutterBlue {
30
static FlutterBlue get instance => _instance;
31
32
/// Checks whether the device supports Bluetooth
33
- Future<bool> get isAvailable => _channel.invokeMethod('isAvailable');
+ Future<bool> get isAvailable =>
34
+ _channel.invokeMethod('isAvailable').then<bool>((d) => d);
35
36
/// Checks if Bluetooth functionality is turned on
- Future<bool> get isOn => _channel.invokeMethod('isOn');
37
+ Future<bool> get isOn => _channel.invokeMethod('isOn').then<bool>((d) => d);
38
39
/// Gets the current state of the Bluetooth module
40
Future<BluetoothState> get state {
0 commit comments