popToBottomAndPushReplacement<T> method
Implementation
Future<T?> popToBottomAndPushReplacement<T>(String location,
{Object? extra}) async {
while (canPop()) {
pop();
}
return await pushReplacement(location, extra: extra);
}