checkBluetoothPermission method
Checks if required bluetooth permissions (e.g. Bluetooth Connect on Android 12+) are granted.
Implementation
@override
Future<bool> checkBluetoothPermission() async {
try {
final hasPermission = await methodChannel
.invokeMethod<bool>('checkBluetoothPermission')
.timeout(methodTimeout);
return hasPermission ?? false;
} catch (e, stack) {
debugPrint('AudioPicker: checkBluetoothPermission error: $e\n$stack');
return false;
}
}