value property

int value

Converts the PermissionStatus value into an integer.

Implementation

int get value {
  switch (this) {
    case PermissionStatus.denied:
      return 0;
    case PermissionStatus.granted:
      return 1;
    case PermissionStatus.restricted:
      return 2;
    case PermissionStatus.limited:
      return 3;
    case PermissionStatus.permanentlyDenied:
      return 4;
    case PermissionStatus.provisional:
      return 5;
    default:
      throw UnimplementedError();
  }
}