pushReplacement method
Implementation
pushReplacement(BuildContext context, Widget page) {
try {
Navigator.of(context)
.pushReplacement(MaterialPageRoute(builder: (context) => page));
} catch (e) {}
}
pushReplacement(BuildContext context, Widget page) {
try {
Navigator.of(context)
.pushReplacement(MaterialPageRoute(builder: (context) => page));
} catch (e) {}
}