title: Flutter: Too many positional arguments in the getPermission function using geolocation package
body: <p>I am using flutter geolocation package to get the current location of the user. But while asking for permission from the user, I am getting the error: Too many positional arguments in the LocationPermission(). Can anyone please help me?</p>
  
  <pre><code>getPermission() async {
          final GeolocationResult result =
              await Geolocation.requestLocationPermission(const LocationPermission(
                  android: LocationPermissionAndroid.fine,
                  ios: LocationPermissionIOS.always));
          return result;
        }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/CvRu4.png" rel="nofollow noreferrer">Screenshot of the problem is here </a></p>