add method Null safety
- String httpMethod,
- String pathRoute,
- 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());
}