Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Future _getCurrentUserLocation () async { final locData = await Location().getLocation(); final double newLatitude = locData.latitude; final double newLongitude = locData.longitude;

Future<void> _getCurrentUserLocation () async {
  final locData = await Location().getLocation();
  final double newLatitude = locData.latitude;
  final double newLongitude = locData.longitude;
 
PREVIOUS NEXT
Tagged: #async #final #locData #await #final #double #newLatitude #final #double #newLongitude
ADD COMMENT
Topic
Name
4+8 =