initBluetoothPlatform method

  1. @override
Future<void> initBluetoothPlatform()
override

Implementation

@override
Future<void> initBluetoothPlatform() async {
  try {
    await bltMethodChannel.invokeMethod('initBluetoothPlugin');
  } on PlatformException catch (e) {
    if (e.code == 'NotAvailableBLEException') {
      throw NotAvailableBltException(e.message);
    }
    throw Exception(e.message);
  }
}