FileIO mixin

Mixin with common functionalities for writing, reading, opening and closing a file.

Mixin applications

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

createDirectory(String path, String newFolder) Future<void>
Creates a folder named newFolder inside the path specified by path.
createDirectorySync(String path, String newFolder) → void
SYNCHRONOUS VERSION
deleteFile(String fileFolder, String fileName) Future<void>
Deletes a file.
deleteFileSync(String fileFolder, String fileName) → void
SYNCHRONOUS VERSION
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readFromFile(String fileFolder, String fileName, {bool byteMode = false}) Future
Reads from a file and returns the content on the form of a String or Uint8List.
readFromFileSync(String fileFolder, String fileName, {bool byteMode = false}) → dynamic
Reads from a file and returns the content on the form of a String or Uint8List.
saveToFile(String fileFolder, String fileName, dynamic fileContent, {bool append = false, bool byteMode = false}) Future<void>
Saves on a file (which path is fileFolder/fileName) the content in fileContent.
saveToFileSync(String fileFolder, String fileName, dynamic fileContent, {bool append = false, bool byteMode = false}) → void
SYNCHRONOUS VERSION
toString() String
A string representation of this object.
inherited

Operators

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