pop method
Pops latest route from stack
Implementation
@override
void pop(AppTabType? tab) {
if (tab == null) {
return;
}
final current = Map<AppTabType, List<UIRouteModel>>.from(stack);
if (current.containsKey(tab)) {
final currentList = List<UIRouteModel>.from(current[tab] ?? []);
// ignore: cascade_invocations
currentList.removeLast();
current[tab] = currentList;
}
_tabRouteStack.update(current);
}