pushNewScreen<T extends Object?> method

Future<T?> pushNewScreen<T extends Object?>(
  1. BuildContext context, {
  2. required Widget screen,
  3. bool withNavBar = false,
  4. PageTransitionAnimation pageTransitionAnimation = PageTransitionAnimation.platform,
  5. RouteSettings? settings,
})

Pushes a new screen with transition, optionally with nav bar

Implementation

Future<T?> pushNewScreen<T extends Object?>(
  BuildContext context, {
  required Widget screen,
  bool withNavBar = false,
  PageTransitionAnimation pageTransitionAnimation =
      PageTransitionAnimation.platform,
  RouteSettings? settings,
}) {
  return pushScreen<T>(
    context,
    screen: screen,
    withNavBar: withNavBar,
    pageTransitionAnimation: pageTransitionAnimation,
    settings: settings,
  );
}