map abstract method
Maps the given URI to the given handler.
The interpretation of uri
and handler
is really up to the
implementation of Router.
Please refer to DefaultRouter.map for how it handles the regular expressions.
Implementation
void map(Pattern uri, Object? handler, {bool preceding = false});