google_maps_webservice
google_maps_webservice copied to clipboard
searchNearbyWithRankBy fails with an error
For solutions, see https://dart.dev/go/unsound-null-safety
lib/ui/routes/select_location_on_map_route.dart:824:97: Error: Too many positional arguments: 0 allowed, but 2 found.
Try removing the extra positional arguments.
PlacesSearchResponse response = await places.searchNearbyWithRankBy( Location(latitude, longitude), "distance", keyword: '' );
Even though the location and rank is required parameters. Please any help will be appreciated