Builder class

Builder.

Constructors

Builder({required Segment segmentDocument, required String rootDirectory})
Create a new builder.
const
Builder.fromDirectory(String directory)
Create a new builder from a directory path.
factory

Properties

handler → Expression?
Get handler reference.
no setter
hashCode int
The hash code for this object.
no setterinherited
methodHandlers Map<String, Expression>
Get all method expressions.
no setter
middleware → Reference?
Get middleware reference.
no setter
paramterMiddleware Map<String, Reference>
Get paramter middleware.
no setter
rootDirectory String
Root directory.
final
router → Expression
Get the segment router
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
segmentBaseName String
Get segment base name.
no setter
segmentDocument Segment
The path segment document.
final
segmentParamName String?
Is a dynamic segment.
no setter

Methods

buildChildRoutes(Expression router) → Expression
Build child routes
call(LibraryBuilder libraryBuilder) → void
Build a Dart library.
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

Static Methods

resolveParamName(String segment) String?
Resolve param name