isLocationServiceEnabled method

Future<bool> isLocationServiceEnabled()

To check if the GPS is enabled

Implementation

Future<bool> isLocationServiceEnabled() async {
  return await Location().serviceEnabled();
}