pushBaseRoute<T extends Object> function

Future<T> pushBaseRoute<T extends Object>(
  1. BaseRoute<T> baseRoute,
  2. BuildContext context,
  3. {bool rootNavigator = false,
  4. bool nullOk = false}
)

Navigator.push

Implementation

Future<T> pushBaseRoute<T extends Object>(
  BaseRoute<T> baseRoute,
  BuildContext context, {
  bool rootNavigator = false,
  bool nullOk = false,
}) {
  return Navigator.of(
    context,
    rootNavigator: rootNavigator,
    nullOk: nullOk,
  ).push(baseRoute.build(context));
}