FileUtility class

Classe di utilità per la gestione dei file. Fornisce metodi statici per leggere, scrivere, salvare ed eliminare file.

Constructors

FileUtility.new()

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 Methods

deleteFile(String filePath) → Future<void>
Elimina il file specificato dal percorso filePath.
readTextFile(String filename) → Future<String>
Legge e restituisce il contenuto di un file filename come stringa. Restituisce "No Data" se il file non esiste o si verifica un errore.
saveFile(File sourceFile, String filename) → Future<File>
Salva un file sourceFile nella directory dell'app con nome filename. Restituisce il nuovo file copiato.
writeTextToFile(String filename, String text) → Future<File>
Scrive una stringa text in un file chiamato filename. Restituisce il file scritto.