turnOn static method
Turn on Bluetooth (Android only)
Implementation
static Future<void> turnOn({Duration timeout = const Duration(seconds: 60)}) async {
final userAccepted = await invoke("turnOn", (p) => p.turnOn());
if (!userAccepted) {
throw BluebirdException("turnOn", BluebirdErrorCode.userRejected, "user rejected");
}
// Wait for adapter to turn on
await adapterReady(timeout: timeout);
}