FileSystemStyle class

Class that represents the path style that a memory file system should adopt.

This is primarily useful if you want to test how your code will behave when faced with particular paths or particular path separator characters. For instance, you may want to test that your code will work on Windows, while still using a memory file system in order to gain hermeticity in your tests.

Properties

drive String
The drive upon which the root directory is mounted. [...]
read-only
root String
The string that represents the root of the file system. [...]
read-only
separator String
The String that represents the delineation between a directory and its children.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

contextFor(String path) Context
Gets an object useful for manipulating paths in this style. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

posix → const FileSystemStyle
Mimics the Unix file system style. [...]
_Posix()
windows → const FileSystemStyle
Mimics the Windows file system style. [...]
_Windows()