push method

void push(
  1. Widget page
)

Push a new page with MaterialPageRoute

Example: context.push(MyPage())

Implementation

void push(Widget page) =>
    Navigator.of(this).push(MaterialPageRoute(builder: (context) => page));