PathSegment class

A class that represents a segment in a hierarchical path structure.

PathSegment manages path segments in a tree-like structure where each segment can have a parent segment and child segments. This is particularly useful for building hierarchical database paths.

Implementers
Available extensions

Constructors

PathSegment(String _segment, {PathSegment? parent})
Creates a new PathSegment with the given segment string.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
parent → PathSegment?
final
path → String
Returns the full path string including all parent segments.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segment → String
Returns the current segment string.
no setter

Methods

child(String childSegment) → PathSegment
Creates a child PathSegment with this segment as the parent.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFirestoreCollection() → FirestoreCollectionPath

Available on PathSegment, provided by the PathSegmentFirestoreExtensions extension

toFirestoreDocument() → FirestoreDocumentPath

Available on PathSegment, provided by the PathSegmentFirestoreExtensions extension

toRealtimeNode() → RealtimeNodePath

Available on PathSegment, provided by the PathSegmentRealtimeExtensions extension

toString() → String
A string representation of this object.
override

Operators

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