push<T extends Object?> method

Future<T?> push<T extends Object?>(
  1. Widget route
)

Navigates to a new route.

Example:

context.push(MyPage());

Implementation

Future<T?> push<T extends Object?>(Widget route) => Navigator.of(
  this,
).push<T>(MaterialPageRoute<T>(builder: (BuildContext _) => route));