enableLocation method

Future<bool> enableLocation ()

As you've already got permission from user to access device location, Lets get to enabling location If user accepts the request to enable android device location We get true in return else false

Implementation

Future<bool> enableLocation() async {
  try {
    return await _methodChannel
        .invokeMethod('enableLocation')
        .then((dynamic result) => result == 1 ? true : false);
  } on PlatformException {
    return false;
  }
}