description property

  1. @override
String get description
override

Human-readable description of what this permission allows.

Implementation

@override
String get description {
  if (_command == null) {
    return 'run any command';
  } else if (_allowedArgs == null) {
    return 'run command: $_command';
  } else {
    return 'run command: $_command with args: ${_allowedArgs.join(', ')}';
  }
}