push<T> function

Future<T?> push<T>(
  1. BuildContext context,
  2. Widget page, {
  3. String? routeName,
})

Implementation

Future<T?> push<T>(BuildContext context, Widget page, {String? routeName}) {
  return Navigator.push<T>(context, defaultPage<T>(page, routeName: routeName));
}