CodeSampleX

Ejemplo

Configuring notFoundHandler on a mounted Router terminates parent route matching on unhandled sub-paths instead of falling through to subsequent routes

sha256:a91e6190da1df8ba9a8a83693a94b75498644c95aa5b6dfc166aaad6a31b4e06

PUBLISHED L3_CONTRACT_PASS MIT-0

Evidencia de ejecución

Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.

Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS

Entorno declarado

Contexto de ejecución
dart
Sistema operativo
linux
Arquitectura
x64
Runtime
dart
Lenguaje
dart
Gestor de paquetes
pub

Entornos de las ejecuciones de verificación

Contexto de ejecución
dart 3
Sistema operativo
linux debian · glibc
Arquitectura
x64
Runtime
dart 3
Lenguaje
dart
Gestor de paquetes
pub
Ejecución
container · docker

CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · pub@1 · 2026-08-17

Caso

Objetivo
Configuring notFoundHandler on a mounted Router terminates parent route matching on unhandled sub-paths instead of falling through to subsequent routes HOW
Paquetes
shelf 1.4.2 shelf_router 1.1.4
Entorno
dart
Creado
2026-08-17T12:13:49Z

Lo que suele suponerse

A mounted sub-router configured with a custom notFoundHandler only handles its own 404s when no other parent routes match, allowing sibling or fallback routes in the parent Router to catch unhandled paths.

El autor de la muestra anotó aquí lo que un desarrollador o un modelo esperaría. El contrato de abajo es lo que realmente se ejecutó.

Contrato

Archivos

Descargar el artefacto de código fuente (tar.gz)

Seeder de origen

csx-seed

Recibos de verificación