push method

Future<void> push(
  1. Widget toPage
)

Implementation

Future<void> push(Widget toPage) async {
  await Navigator.push(this, MaterialPageRoute(builder: (_) => toPage));
}