enableBluetooth static method

Future<bool> enableBluetooth({
  1. Duration? timeout,
})

Enable Bluetooth. It might throw errors if Bluetooth is not available. Not supported on Web and Apple.

Implementation

static Future<bool> enableBluetooth({
  Duration? timeout,
}) async {
  return await _bleCommandQueue.queueCommand(
    () => _platform.enableBluetooth(),
    timeout: timeout,
  );
}