hasPermissions method

  1. @override
Future<bool> hasPermissions()
override

Check if required BLE permissions are granted

Implementation

@override
Future<bool> hasPermissions() async {
  final result = await methodChannel.invokeMethod('hasBlePermissions');
  if (result is Map) {
    return result['hasPermissions'] as bool? ?? false;
  }
  return result as bool? ?? false;
}