hasService property

bool get hasService

Whether this permission has a related system service that can be switched off globally (Location Services, Bluetooth).

Implementation

bool get hasService => switch (this) {
      location ||
      locationWhenInUse ||
      locationAlways ||
      bluetooth ||
      bluetoothScan ||
      bluetoothConnect ||
      bluetoothAdvertise =>
        true,
      _ => false,
    };