Check out example codes for "dart how to get location". It will help you in understanding the concepts better.

Code Example 1

import 'package:geolocator/geolocator.dart';

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

Learn ReactJs, React Native from akashmittal.com