hasPermission method

  1. @override
Future<PermissionStatus> hasPermission()
override

Checks if the app has permission to access location.

If the result is PermissionStatus.deniedForever, no dialog will be shown on requestPermission. Returns a PermissionStatus object.

Implementation

@override
Future<PermissionStatus> hasPermission() async {
  final result = await _methodChannel!.invokeMethod('hasPermission');
  return _parsePermissionStatus(result as int?);
}