FileSystemStyle class abstract

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.
no setter
hashCode int
The hash code for this object.
no setterinherited
root String
The string that represents the root of the file system.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separator String
The String that represents the delineation between a directory and its children.
no setter

Methods

contextFor(String path) → Context
Gets an object useful for manipulating paths in this style.
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

Constants

posix → const FileSystemStyle
Mimics the Unix file system style.
windows → const FileSystemStyle
Mimics the Windows file system style.