push<T> method

Future<T?> push<T>(
  1. Route<T> route
)

Provides a shortcut to push a new route to the navigator.

This is equivalent to calling Navigator.of(context).push().

Implementation

Future<T?> push<T>(Route<T> route) => navigator.push(route);