popAllAndPush static method
void
popAllAndPush(
- BuildContext context,
- Widget page, {
- PageTransition? transition,
- Duration? duration,
Implementation
static void popAllAndPush(BuildContext context, Widget page, {PageTransition? transition, Duration? duration}){
final route = _getPageRoute(transition, duration, page);
Navigator.of(context).pushAndRemoveUntil(route, (Route<dynamic> route) => false);
}