currentStatus property
Gets the current state of the Bluetooth module
Implementation
Stream<BTStatus> get currentStatus async* {
// if (Platform.isAndroid) {
yield* _statusStream.cast<BTStatus>();
/*} else if (Platform.isIOS) {
await iosChannel.invokeMethod('state').then((s) => s);
await for (dynamic data in iosStateChannel.receiveBroadcastStream().map((s) => s)) {
if (data is int) {
yield BTStatus.values[data];
}
}
// yield* iosStateChannel.receiveBroadcastStream().map((s) => s);
}*/
}