initializeFlutterBlue method

Future<void> initializeFlutterBlue()

Initialize Bluetooth if it isn't already.

Implementation

Future<void> initializeFlutterBlue() async {
  final bool isInitialized = await isFlutterBlueInitialized();
  if (isInitialized) {
    return;
  }

  _channel.invokeMethod('initializeFlutterBlue');
}