grantPermissionWhenInUse method

Future<void> grantPermissionWhenInUse()

Grants the permission that the currently visible native permission request dialog is asking for.

Throws if no permission request dialog is present.

See also:

Implementation

Future<void> grantPermissionWhenInUse() {
  return platform.action.mobile(
    android: platform.android.grantPermissionWhenInUse,
    ios: platform.ios.grantPermissionWhenInUse,
    desktop: () => platform.desktop.tap(name: 'Allow'),
  );
}