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