push<T> static method

Future<T?> push<T>(
  1. BuildContext context,
  2. Route route
)

Pushes the given route onto the navigator nearest to context.

Implementation

static Future<T?> push<T>(BuildContext context, Route route) {
  return of(context).push(route);
}