call method

FutureOr call(
  1. HttpRequest req,
  2. HttpResponse res
)

this is the method that is called when the route is called

Implementation

FutureOr<dynamic> call(HttpRequest req, HttpResponse res) async {
  final instance = newInstance;
  // this handles the request
  await instance.defineVars(req, res);
  req.validate();
  await instance.run(req, res);
}