AssetPermission.asset constructor
AssetPermission.asset(
- String asset
Create a new filesystem permission that matches a specific file.
Implementation
factory AssetPermission.asset(String asset) {
final escaped = asset.replaceAll(r'\', r'\\').replaceAll(r'/', r'\/');
return AssetPermission(RegExp('^$escaped\$'));
}