pushNewScreen<T extends Object?> method
Future<T?>
pushNewScreen<T extends Object?>(
- BuildContext context, {
- required Widget screen,
- PageTransitionAnimation pageTransitionAnimation = PageTransitionAnimation.platform,
- PageRoute<
T> ? customPageRoute, - 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,
PageRoute<T>? customPageRoute,
RouteSettings? settings,
}) {
return pushScreen<T>(
context,
screen: screen,
withNavBar: withNavBar,
pageTransitionAnimation: pageTransitionAnimation,
customPageRoute: customPageRoute,
settings: settings,
);
}