offAll function
Future<void>
offAll(
- Widget page, {
- bool dialog = false,
- Transition transition = Transition.cupertino,
- 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,
),
);
}