navigationReplace static method
Implementation
static Future navigationReplace(BuildContext context, Widget screen) async {
return await Navigator.pushReplacement(
context,
MaterialPageRoute(
settings: RouteSettings(name: '/${screen.toStringShort()}'),
builder: (context) => screen));
}