offRoute method

void offRoute(
  1. String routeName,
  2. WidgetBuilder builder
)

Supply something not a listed route.

Implementation

void offRoute(String routeName, WidgetBuilder builder) {
  var path = _currentConfiguration.path;
  path = '$path/$routeName';
  _addPage(pageWrapper(path, builder));
  nextPath(path);
}