push method

Future<T?> push(
  1. BuildContext context, {
  2. bool rootNavigator = false,
})

Implementation

Future<T?> push(
  BuildContext context, {
  bool rootNavigator = false,
}) {
  return Navigator.of(
    context,
    rootNavigator: rootNavigator,
  ).push<T>(build(context));
}