Style class Null safety

An enum type describing a "flavor" of path.

Constructors

Style()

Properties

context Context
A Context that uses this style.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
name String
The name of this path style. Will be "posix" or "windows".
read-only
needsSeparatorPattern Pattern
Deprecated('Most Style members will be removed in path 2.0.')">@Deprecated('Most Style members will be removed in path 2.0.')read-only
relativeRootPattern Pattern?
Deprecated('Most Style members will be removed in path 2.0.')">@Deprecated('Most Style members will be removed in path 2.0.')read-only
rootPattern Pattern
Deprecated('Most Style members will be removed in path 2.0.')">@Deprecated('Most Style members will be removed in path 2.0.')read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
separator String
Deprecated('Most Style members will be removed in path 2.0.')">@Deprecated('Most Style members will be removed in path 2.0.')read-only
separatorPattern Pattern
Deprecated('Most Style members will be removed in path 2.0.')">@Deprecated('Most Style members will be removed in path 2.0.')read-only

Methods

absolutePathToUri(String path) Uri
Deprecated('Most style members will be removed in path 2.0.')">@Deprecated('Most style members will be removed in path 2.0.')
getRelativeRoot(String path) String?
Deprecated('Most style members will be removed in path 2.0.')">@Deprecated('Most style members will be removed in path 2.0.')
getRoot(String path) String?
Deprecated('Most style members will be removed in path 2.0.')">@Deprecated('Most style members will be removed in path 2.0.')
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
pathFromUri(Uri uri) String
Deprecated('Most style members will be removed in path 2.0.')">@Deprecated('Most style members will be removed in path 2.0.')
relativePathToUri(String path) Uri
Deprecated('Most style members will be removed in path 2.0.')">@Deprecated('Most style members will be removed in path 2.0.')
toString() String
A string representation of this object.
override

Operators

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

Static Properties

platform Style
The style of the host platform.
final
posix Style
POSIX-style paths use "/" (forward slash) as separators. Absolute paths start with "/". Used by UNIX, Linux, Mac OS X, and others.
final
url Style
URLs aren't filesystem paths, but they're supported to make it easier to manipulate URL paths in the browser.
final
windows Style
Windows paths use \ (backslash) as separators. Absolute paths start with a drive letter followed by a colon (example, C:) or two backslashes (\\) for UNC paths.
final