goToUnknownPage method

  1. @override
Future<void> goToUnknownPage([
  1. bool clearPages = false
])
override

Navigates to an unknown page.

Implementation

@override
Future<void> goToUnknownPage([bool clearPages = false]) async {
  if (clearPages) {
    _activePages.clear();
  }

  final PageSettings pageSettings = _buildPageSettings(notFoundRoute.name);
  final RouteDecoder<T>? routeDecoder = _getRouteDecoder(pageSettings);

  await _push(routeDecoder!);
}