RouterFactory typedef
RouterFactory =
Router Function()
Builds the application for one isolate.
Every isolate builds its own router, because a Router holds handlers and
state that cannot cross an isolate boundary. This has to be a top-level or
static function so it can be sent to a new isolate.
Implementation
typedef RouterFactory = Router Function();