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