push function

Future<void> push(
  1. Widget page, {
  2. bool dialog = false,
  3. Transition transition = Transition.cupertino,
  4. bool preventDuplicates = true,
  5. 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,
    ),
  );
}