checkPermission method

Future<LocationPermission> checkPermission()

Returns a Future indicating if the user allows the App to access the device's location.

Note: on the web platform not all browsers implement the Permission API if this is the case the LocationPermission.unableToDetermine is returned as the plugin cannot determine the if permissions are granted or denied.

Implementation

Future<LocationPermission> checkPermission() {
  throw UnimplementedError(
    'checkPermission() has not been implemented.',
  );
}