hasLocationPermission static method

Future<bool> hasLocationPermission()

Implementation

static Future<bool> hasLocationPermission() async{
  return await hasPermission(Permission.location) && await hasPermission(Permission.locationAlways) && await hasPermission(Permission.locationWhenInUse)
      && await Permission.locationWhenInUse.serviceStatus.isEnabled;
}