FilePermissionChecker constructor
FilePermissionChecker({
- required List<
String> allowedPaths, - List<
String> ? protectedPaths, - required PermissionRuleSet ruleSet,
- PermissionCache? cache,
Implementation
FilePermissionChecker({
required List<String> allowedPaths,
List<String>? protectedPaths,
required PermissionRuleSet ruleSet,
PermissionCache? cache,
}) : _allowedPaths = List.of(allowedPaths),
_protectedPaths = List.of(protectedPaths ?? _defaultProtectedPaths),
_ruleSet = ruleSet,
_cache = cache ?? PermissionCache();