offAll function

Future<void> offAll(
  1. Widget page, {
  2. bool dialog = false,
  3. Transition transition = Transition.cupertino,
  4. int milliSecondDelay = 1,
})

Implementation

Future<void> offAll(
  final Widget page, {
  final bool dialog = false,
  final Transition transition = Transition.cupertino,
  final int milliSecondDelay = 1,
}) async {
  final Widget _page = await Future.microtask(() => page);
  delay(
    milliSecondDelay,
    () => Get.offAll(
      _page,
      fullscreenDialog: dialog,
      popGesture: true,
      opaque: dialog ? false : true,
      transition: transition,
    ),
  );
}