Route class

Constructors

Route({required String id, required String path, Method method = Method.get, Simulated? simulated})
path : Relative to root

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
method Method
getter/setter pair
path String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
simulated Simulated?
getter/setter pair

Methods

call({dynamic body, Map<String, dynamic>? parameters, Map<String, String>? headers, String network = 'main'}) Future<Result>
main points to default Network object.
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

dio ↔ Dio?
getter/setter pair
routes Map<String, Route>
getter/setter pair

Static Methods

get(String key) Route
register(Route route) → dynamic