Style class
An enum type describing a "flavor" of path.
Constructors
- Style()
Properties
- context → Context
-
A Context that uses this style.
read-only
- 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."), read-only
- relativeRootPattern → Pattern
-
@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."), read-only
- separator → String
-
@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."), 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
-
absolutePathToUri(
String path) → Uri -
@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.")
-
getRoot(
String path) → String -
@Deprecated("Most style members will be removed in path 2.0.")
-
pathFromUri(
Uri uri) → String -
@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.")
-
toString(
) → String -
Returns a string representation of this object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
Operators
-
operator ==(
dynamic 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