buildRoute<R extends Object> method

MaterialPageRoute buildRoute<R extends Object>(
  1. RouteSettings settings,
  2. Widget builder
)

creates a route.

This method is usually called within getRoutes

Implementation

MaterialPageRoute buildRoute<R extends Object>(
    RouteSettings settings, Widget builder) {
  return new MaterialPageRoute<R>(
    settings: settings,
    builder: (ctx) => builder,
  );
}