defaultAction property

String defaultAction

Default value for action UI element.

Implementation

String get defaultAction {
  return switch (this) {
    PermissionStatus.denied => 'Allow access',
    PermissionStatus.restricted => 'Please remove restrictions to continue.',
    PermissionStatus.limited ||
    PermissionStatus.provisional ||
    PermissionStatus.permanentlyDenied =>
      'Open settings',
    PermissionStatus.granted => throw AssertionError('Shouldn\'t be called'),
  };
}