'Unhandled Exception: MissingPluginException geolocator package which works fine on android but not in IOS

Here is my code to fetch location which is working on android but in IOS its showing error

Position position = await Geolocato.getCurrentPosition( desiredAccuracy: LocationAccuracy.high);

ERROR: Unhandled Exception: MissingPluginException(No implementation found for method getCurrentPosition on channel flutter.baseflow.com/geolocator)

Package : https://pub.dev/packages/geolocator



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source