reset method

void reset({
  1. @deprecated bool clearFactory = true,
  2. bool clearRouteBindings = true,
})

Implementation

void reset(
    {@deprecated bool clearFactory = true, bool clearRouteBindings = true}) {
  GetInstance().resetInstance(clearRouteBindings: clearRouteBindings);
  Get.clearRouteTree();
  Get.clearTranslations();
  Get.resetRootNavigator();
}