goToRealPage static method
Implementation
static goToRealPage(BuildContext context, String pageName) {
while (Navigator.of(context).canPop() && Navigator.of(context).widget.runtimeType.toString() !=
pageName) Navigator.of(context).pop(false);
}