ComponentRootDir class final

The root directory component.

Represents a leading separator that designates the path begins at the filesystem root. For Windows paths with a prefix that already implies a root (UNC, verbatim UNC, device namespace), this still appears immediately after the prefix during iteration to make root presence uniform across path shapes.

Inheritance

Constructors

ComponentRootDir(int separatorByte, {required bool isWide})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isWide bool
Whether this root belongs to a wide (Windows) or narrow (POSIX) path.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separatorByte int
The separator code unit to render: / on POSIX, \ on Windows.
final

Methods

asOsStr() CodeUnits
The code units of this component as they appear in the source path.
override
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