addRoute method

App addRoute(
  1. Route route
)

Create a new route and add it to the routes list

Implementation

App addRoute(Route route) {
  _routes = [..._routes, route];
  return this;
}