FileService class

File service

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

exists(String path) bool
check if a file exists
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String path) String
read a file
toString() String
A string representation of this object.
inherited
withMemory() → void
Test function, change the file system to MemoryFileSystem
writeOn(String path, String contents) → void
write on a file

Operators

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

Static Properties

instance FileService
shared instance
getter/setter pair