initLocation method
Function to get current locations
Implementation
Future<void> initLocation() async {
_onInitCamera = true;
try {
Position currentPos = await Geolocator.getCurrentPosition();
_sourceLocation = LatLng(currentPos.latitude, currentPos.longitude);
_onInitCamera = false;
} catch (e) {
print(e.toString());
initLocation();
}
notifyListeners();
}