popModeUntil method
Removes routes according to PopMode
until it reaches the specific fullRoute
,
DOES NOT remove the fullRoute
Implementation
@override
Future<void> popModeUntil(
String fullRoute, {
PopMode popMode = PopMode.history,
}) async {
// remove history or page entries until you meet route
var iterator = currentConfiguration;
while (_canPop(popMode) &&
iterator != null &&
iterator.pageSettings?.name != fullRoute) {
await _pop(popMode, null);
// replace iterator
iterator = currentConfiguration;
}
notifyListeners();
}