pushAndPopAll<T> method

Future<T?> pushAndPopAll<T>(
  1. Widget widget
)

Implementation

Future<T?> pushAndPopAll<T>(Widget widget) {
  Navigator.popUntil(context, (route) => route.isFirst);
  return pushReplacement<T>(widget);
}