description property
Human-readable description of what this permission allows.
Implementation
@override
String get description {
final operations = [];
if (_connect) operations.add('connect');
if (_listen) operations.add('listen');
if (_bind) operations.add('bind');
final ops = operations.join('/');
if (_host != null && _port != null) {
return '$ops to $_host:$_port';
} else if (_host != null) {
return '$ops to $_host';
} else if (_port != null) {
return '$ops on port $_port';
} else {
return '$ops on any host/port';
}
}