ExpressMethod class

Constructors

ExpressMethod({Map<String, List<dynamic Function(ExpressRequest req, ExpressResponse res)>>? callback, String? route, List<dynamic Function(ExpressRequest, ExpressResponse)>? callbacks})

Properties

callback Map<String, List<dynamic Function(ExpressRequest req, ExpressResponse res)>>
Function to be initialized in the route. Leave it blank.
getter/setter pair
callbacks List<dynamic Function(ExpressRequest, ExpressResponse)>?
lists of callback functions. Can be middlewares, or just one request function.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
route String?
request route
getter/setter pair
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