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