pushReplacement function

dynamic pushReplacement(
  1. Widget page
)

Implementation

pushReplacement(Widget page) {
  navGK.currentState?.pushReplacement(new MaterialPageRoute<dynamic>(
    builder: (BuildContext context) {
      return page;
    },
  ));
}