RouteNotFoundException constructor

RouteNotFoundException({
  1. required String route,
  2. Object? arguments,
  3. Object? cause,
  4. StackTrace? stack,
  5. Map<String, dynamic> metadata = const {},
})

Creates an exception indicating the requested route could not be resolved.

Implementation

RouteNotFoundException({
  required super.route,
  super.arguments,
  super.cause,
  super.stack,
  super.metadata,
}) : super(
        operation: 'push',
        userMessage: 'Page not found.',
        devMessage: 'Route not found: $route',
        severity: Severity.warning,
        isReportable: false,
      );