pushTransition<T> method

Future<T?> pushTransition<T>({
  1. Widget? child,
  2. ChildBuilder? childBuilder,
  3. required PageTransitionType type,
  4. Duration duration = const Duration(milliseconds: 200),
  5. Curve curve = Curves.linear,
  6. bool fullscreenDialog = false,
  7. bool opaque = false,
  8. RouteSettings? settings,
})

Implementation

Future<T?> pushTransition<T>({
  Widget? child,
  ChildBuilder? childBuilder,
  required PageTransitionType type,
  Duration duration = const Duration(milliseconds: 200),
  Curve curve = Curves.linear,
  bool fullscreenDialog = false,
  bool opaque = false,
  RouteSettings? settings,
}) {
  return Navigator.push<T>(
    this,
    PageTransition(
      type: type,
      child: child,
      childBuilder: childBuilder,
      duration: duration,
      curve: curve,
      fullscreenDialog: fullscreenDialog,
      opaque: opaque,
      settings: settings,
    ),
  );
}