isGranted method
Implementation
Future<bool> isGranted(String permission) async {
final result = await DVNativeBridge.invoke<bool>(
'permissions.isGranted',
{'permission': permission},
);
if (result != null) return result;
final cached = _grants[permission];
if (cached != null) return cached;
throw StateError(
'Native binding "permissions.isGranted" is not registered. Generate and register an FFI/ffigen or JNI/jnigen binding before calling this API.',
);
}