FilesystemWritePermission class
A permission that allows access to write a file system resource.
- Inheritance
-
- Object
- FilesystemPermission
- FilesystemWritePermission
Constructors
- FilesystemWritePermission.new(String path)
- Create a new filesystem write permission that matches a specific path.
- FilesystemWritePermission.directory(String dir)
-
Create a new filesystem permission that matches any file in a directory
or one of its subdirectories.
factory
- FilesystemWritePermission.file(String file)
-
Create a new filesystem permission that matches a specific file.
factory
Properties
- allowedPath → String
-
The allowed path pattern (absolute path to a file or directory).
finalinherited
-
domains
→ List<
String> -
The domain specifies the type of resource, such as 'network' or
'filesystem'.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
match(
[Object? data]) → bool -
Returns true if the permission allows access to the specified resource.
If the permission is granular, the
data
parameter may be used to specify a specific resource (e.g. a URL for a network permission).override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Properties
- any → FilesystemWritePermission
-
A permission that allows write access to any file system resource.
final