remove(Route route, Route? previousRoute) { if (_stack.isEmpty) { return; } Page? page = _findPage(route); if (page != null) { _stack.remove(page); } }