Segment class

Path segment.

Annotations
  • @freezed

Constructors

Segment({required String directory, String? handler, String? middleware, required Map<String, Segment> methodSegments, required Map<String, String> paramsMiddleware, SegmentConfiguration? configuration, required Iterable<Segment> children})
Create a new path segment.
const
factory
Segment.fromDirectory(String directory)
Create a new path segment from a directory path.
factory

Properties

children Iterable<Segment>
no setterinherited
configuration SegmentConfiguration?
no setterinherited
directory String
no setterinherited
handler String?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
methodSegments Map<String, Segment>
no setterinherited
middleware String?
no setterinherited
paramsMiddleware Map<String, String>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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