import 'package:permission_handler/permission_handler.dart' as ph; // then use the alias // ... if (await ph.Permission.locationWhenInUse.serviceStatus.isDisabled || await ph.Permission.speech.isPermanentlyDenied) { await ph.openAppSettings(); } // (...)