toFinish static method
Navigate screen and remove current screen
Implementation
static toFinish(BuildContext context, String routeName, {dynamic arguments}) {
Navigator.pushReplacementNamed(context, routeName, arguments: arguments);
}
Navigate screen and remove current screen
static toFinish(BuildContext context, String routeName, {dynamic arguments}) {
Navigator.pushReplacementNamed(context, routeName, arguments: arguments);
}