ForwardingLink class Null safety

A link that forwards all methods and properties to a delegate.

Implemented types

Constructors

Properties

absolute Link
A FileSystemEntity whose path is the absolute path of path.
read-onlyinherited
basename String
Gets the part of this entity's path after the last separator.
read-onlyinherited
delegate Link
The entity to which this entity will forward all methods and properties.
protected">@protectedread-onlyinherited
dirname String
Gets the part of this entity's path before the last separator.
read-onlyinherited
fileSystem FileSystem
Returns the file system responsible for this entity.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
isAbsolute bool
Whether this object's path is absolute.
read-onlyinherited
parent Directory
The parent directory of this entity.
read-onlyinherited
path String
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
uri Uri
A Uri representing the file system entity's location.
read-onlyinherited

Methods

create(String target, {bool recursive = false}) Future<Link>
Creates a symbolic link in the file system.
override
createSync(String target, {bool recursive = false}) → void
Synchronously create the link. Calling createSync on an existing link will throw an exception.
override
delete({bool recursive = false}) Future<Link>
Deletes this FileSystemEntity.
inherited
deleteSync({bool recursive = false}) → void
Synchronously deletes this FileSystemEntity.
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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
rename(String newPath) Future<Link>
Renames this file system entity.
inherited
renameSync(String newPath) Link
Synchronously renames this file system entity.
inherited
Resolves the path of a file system object relative to the current working directory.
inherited
resolveSymbolicLinksSync() String
Resolves the path of a file system object relative to the current working directory.
inherited
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
target() Future<String>
Gets the target of the link.
override
targetSync() String
Synchronously gets the target of the link.
override
toString() String
A string representation of this object.
inherited
update(String target) Future<Link>
Updates the link.
override
updateSync(String target) → void
Synchronously updates the link.
override
watch({int events = FileSystemEvent.all, bool recursive = false}) Stream<FileSystemEvent>
Start watching the FileSystemEntity for changes.
inherited
wrap(Link delegate) ForwardingLink
Creates a new entity with the same file system and same type as this entity but backed by the specified delegate.
override
wrapDirectory(Directory delegate) Directory
Creates a new directory with the same file system as this entity and backed by the specified delegate.
protected">@protectedinherited
wrapFile(File delegate) File
Creates a new file with the same file system as this entity and backed by the specified delegate.
protected">@protectedinherited
Creates a new link with the same file system as this entity and backed by the specified delegate.
protected">@protectedinherited

Operators

operator ==(Object other) bool
The equality operator.
inherited