Future<bool> requestPermission() async { if (await Permission.locationWhenInUse.request().isGranted) { return true; } else { return false; } }