navigateReplace static method
void
navigateReplace(
Implementation
static void navigateReplace(BuildContext context, Widget screen) {
if (CuReUtils.isIos()) {
Navigator.pushReplacement(
context,
CupertinoPageRoute(
builder: (context) => screen,
),
);
} else {
Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (context) => screen,
),
);
}
}