DirectoryMixin mixin
class MyDirectory with DirectoryMixin implements Directory {
// Must override
@override
Directory get directory;
...
}
- Implemented types
Properties
- absolute → Directory
-
A Directory whose path is the absolute path of this Directory.
no setteroverride
- directory → Directory
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAbsolute → bool
-
Whether this object's path is absolute.
no setterinherited
- parent → Directory
-
The parent directory of this entity.
no setterinherited
- path → String
-
Gets the path of this directory.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
A Uri representing the directory's location.
no setteroverride
Methods
-
create(
{bool recursive = false}) → Future< Directory> -
Creates the directory if it doesn't exist.
override
-
createSync(
{bool recursive = false}) → void -
Synchronously creates the directory if it doesn't exist.
override
-
createTemp(
[String? prefix]) → Future< Directory> -
Creates a temporary directory in this directory.
override
-
createTempSync(
[String? prefix]) → Directory -
Synchronously creates a temporary directory in this directory.
override
-
delete(
{bool recursive = false}) → Future< FileSystemEntity> -
Deletes this Directory.
inherited
-
deleteSync(
{bool recursive = false}) → void -
Synchronously deletes this Directory.
inherited
-
exists(
) → Future< bool> -
Checks whether the file system entity with this path exists.
inherited
-
existsSync(
) → bool -
Synchronously checks whether the file system entity with this path
exists.
inherited
-
list(
{bool recursive = false, bool followLinks = true}) → Stream< FileSystemEntity> -
Lists the sub-directories and files of this Directory.
override
-
listSync(
{bool recursive = false, bool followLinks = true}) → List< FileSystemEntity> -
Lists the sub-directories and files of this Directory.
Optionally recurses into sub-directories.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rename(
String newPath) → Future< Directory> -
Renames this directory.
override
-
renameSync(
String newPath) → Directory -
Synchronously renames this directory.
override
-
resolveSymbolicLinks(
) → Future< String> -
Resolves the path of a file system object relative to the
current working directory.
override
-
resolveSymbolicLinksSync(
) → String -
Resolves the path of a file system object relative to the
current working directory.
override
-
stat(
) → Future< FileStat> -
Calls the operating system's
stat()
function on path.inherited -
statSync(
) → FileStat -
Synchronously calls the operating system's
stat()
function on path.inherited -
toString(
) → String -
A string representation of this object.
override
-
watch(
{int events = FileSystemEvent.all, bool recursive = false}) → Stream< FileSystemEvent> -
Start watching the FileSystemEntity for changes.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited