fxCanAccessLocation function

Future<bool> fxCanAccessLocation()

Implementation

Future<bool> fxCanAccessLocation() async {
  await Permission.location.request();
  PermissionStatus locationPermission = await Permission.location.status;

  if (locationPermission == PermissionStatus.granted) {
    return true;
  }

  return false;
}