Route class

Constructors

Route.new({String? method, List<String>? methods, dynamic middleware})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
method String?
final
methods List<String>?
final
middleware → dynamic
final
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

Static Properties

router Router
no setter

Static Methods

delete(String path, dynamic handler, [String? action]) → RouteEntry
discovery(Type controller) → void
get(String path, dynamic handler, [String? action]) → RouteEntry
group(RouteOptions options, Function registrar) → void
middlewares(dynamic middlewares) → RouteEntry
patch(String path, dynamic handler, [String? action]) → RouteEntry
post(String path, dynamic handler, [String? action]) → RouteEntry
prefix(String prefix) → RouteEntry
put(String path, dynamic handler, [String? action]) → RouteEntry
via(List<String> methods, String uri, dynamic handler, [String? action]) → RouteEntry