google_maps_webservice icon indicating copy to clipboard operation
google_maps_webservice copied to clipboard

searchNearbyWithRankBy fails with an error

Open Muniru0 opened this issue 3 years ago • 0 comments


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

Muniru0 avatar Sep 15 '21 07:09 Muniru0