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