AnalyzerFile class
Constructors
AnalyzerFile (File file , ResourceProvider provider )
Properties
changes
→ Stream <WatchEvent >
Watch for changes to this file.
no setter override
exists
→ bool
Return true
if this resource exists.
no setter override
file
→ File
final
fileSystem
→ FileSystem
no setter
hashCode
→ int
The hash code for this object.
no setter inherited
lengthSync
→ int
Synchronously get the length of the file.
Throws a FileSystemException
if the operation fails.
no setter override
modificationStamp
→ int
Return the last-modified stamp of the file.
Throws a FileSystemException
if the file does not exist.
no setter override
parent
→ Folder
Return the Folder
that contains this resource, possibly itself if this
resource is a root folder.
no setter override
parent2
→ Folder
Return the Folder
that contains this resource, possibly itself if this
resource is a root folder.
no setter override
path
→ String
Return the full path to this resource.
no setter override
provider
→ ResourceProvider
Return the ResourceProvider
that owns this resource.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
shortName
→ String
Return a short version of the name that can be displayed to the user to
denote this resource.
no setter override
Methods
copyTo (Folder parentFolder )
→ File
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.
override
createSource ([Uri ? uri ])
→ Source
Create a new Source
instance that serves this file.
override
delete ()
→ void
Synchronously deletes this resource and its children.
override
isOrContains (String path )
→ bool
Return true
if absolute path
references this resource or a resource in
this folder.
override
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readAsBytesSync ()
→ Uint8List
Synchronously read the entire file contents as a list of bytes.
Throws a FileSystemException
if the operation fails.
override
readAsStringSync ()
→ String
Synchronously read the entire file contents as a String .
Throws FileSystemException
if the file does not exist.
override
renameSync (String newPath )
→ File
Synchronously rename this file.
Return a File
instance for the renamed file.
override
resolveSymbolicLinksSync ()
→ Resource
Return a resource that refers to the same resource as this resource, but
whose path does not contain any symbolic links.
override
toString ()
→ String
A string representation of this object.
inherited
toUri ()
→ Uri
Return a Uri representing this resource.
override
watch ()
→ ResourceWatcher
Watch for changes to this file.
override
writeAsBytesSync (List <int > bytes )
→ void
Synchronously write the given bytes
to the file. The new content will
replace any existing content.
override
writeAsStringSync (String content )
→ void
Synchronously write the given content
to the file. The new content will
replace any existing content.
override