push method

dynamic push(
  1. Widget widget
)

Implementation

push(Widget widget) {
  pages.add(
    MaterialPage(
      key: UniqueKey(),
      child: widget,
    ),
  );

  notifyListeners();
}