description property

  1. @override
String get description
override

Human-readable description of what this permission allows.

Implementation

@override
String get description {
  final operations = [];
  if (_read) operations.add('read');
  if (_write) operations.add('write');
  if (_execute) operations.add('execute');

  final ops = operations.join('/');
  final path = _path ?? 'any';
  return '$ops operations on $path';
}