push method

void push(
  1. Widget widget
)

*To move to new page

Implementation

void push(Widget widget) {
  Navigator.push(this, MaterialPageRoute<Widget>(builder: (context) => widget));
}