Resource class abstract

The abstract class Resource is an abstraction of file or folder.

Implementers

Constructors

Resource()

Properties

exists bool
Return true if this resource exists.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
parent Folder
Return the Folder that contains this resource, possibly itself if this resource is a root folder.
read-only
parent2 Folder
Return the Folder that contains this resource, possibly itself if this resource is a root folder.
read-only
path String
Return the full path to this resource.
read-only
provider ResourceProvider
Return the ResourceProvider that owns this resource.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
shortName String
Return a short version of the name that can be displayed to the user to denote this resource.
read-only

Methods

copyTo(Folder parentFolder) Resource
Copy this resource to a child of the parentFolder with the same kind and shortName as this resource. If this resource is a folder, then all of the contents of the folder will be recursively copied.
delete() → void
Synchronously deletes this resource and its children.
isOrContains(String path) bool
Return true if absolute path references this resource or a resource in this folder.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveSymbolicLinksSync() Resource
Return a resource that refers to the same resource as this resource, but whose path does not contain any symbolic links.
toString() String
A string representation of this object.
inherited
toUri() Uri
Return a Uri representing this resource.
watch() ResourceWatcher
Watch for changes to this resource.

Operators

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