Route class

Constructors

Route({required Method method, required String path, List<Callback> middleware = const [], Callback? callback})

Properties

callback Callback?
The handler callback for this route
getter/setter pair
hasCallback bool
Check if this route has callback
no setter
hashCode int
The hash code for this object.
no setterinherited
hasWildcard bool
Checks if this route path contains wildcard (*)
no setter
matcher RegExp
Regular expression matcher associated with the route path
final
method Method
Http Method of this route
final
methodString String
no setter
middleware List<Callback>
List of middlewares atteached to this route
final
notWildcard bool
Check if this route is not a wildcard path
no setter
path String
Path of this route
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stack List<Callback>
List of combined stack of middlewares and callback
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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