FilePermissionChecker constructor

FilePermissionChecker({
  1. required List<String> allowedPaths,
  2. List<String>? protectedPaths,
  3. required PermissionRuleSet ruleSet,
  4. 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();