offAll static method

Future offAll(
  1. Widget page, {
  2. BuildContext? localContext,
})

Implementation

static Future<dynamic> offAll(
  Widget page, {
  BuildContext? localContext,
}) async {
  YurLog("Off All : ${page.toString()}", name: "Get.offAll");
  await Navigator.pushAndRemoveUntil(
    localContext ?? context,
    CupertinoPageRoute(builder: (context) => page),
    (route) => false,
  );
}