Files class

Utility class to manipulate all files.

Constructors

Files()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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.
inherited

Static Properties

localPath Future<String?>
Return the local path location.
no setter

Static Methods

exists(String fileName) Future<bool>
Return a boolean indicating if a file exists or not. Pass in the name of the file.
get(String fileName) Future<File>
Return the File object of the specified file. Pass in the name of the file.
read(String fileName) Future<String>
Return the contents of the specified file. Pass the name of the file.
readFile(File file) Future<String>
Return the contents of the specified file. Pass the File object
write(String fileName, String content) Future<File>
Write the file
writeFile(File file, String content) Future<File>
Write the file