getCurrentPosition method
Implementation
Future getCurrentPosition() async {
final Position position = await Geolocator.getCurrentPosition();
add(OnNewUserLocationEvent(LatLng(position.latitude, position.longitude)));
}
Future getCurrentPosition() async {
final Position position = await Geolocator.getCurrentPosition();
add(OnNewUserLocationEvent(LatLng(position.latitude, position.longitude)));
}