push<T> method

Future<T?> push<T>(
  1. Widget page
)

Pushes a new screen onto the navigation stack

Implementation

Future<T?> push<T>(Widget page) async {
  return await Navigator.push(
    this,
    MaterialPageRoute(builder: (_) => page),
  );
}