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