add method Null safety

  1. @override
void add(
  1. String httpMethod,
  2. String pathRoute,
  3. RouterHandler routerHandler
)
override

Add a routerHandler to the _router and handles the request by the httpMethod for the pathRoute.

Implementation

@override
void add(
  final String httpMethod,
  final String pathRoute,
  final RouterHandler routerHandler,
) {
  _router.add(httpMethod, pathRoute, routerHandler.handleRoute());
}