nyRoutes function

NyRouter nyRoutes(
  1. dynamic build(
    1. NyRouter router
    )
)

Builds the routes in the router.dart file

Implementation

NyRouter nyRoutes(Function(NyRouter router) build) {
  NyRouter nyRouter = NyRouter();
  build(nyRouter);

  return nyRouter;
}