CodeSampleX

Ejemplo

collection 1.19.1: Handle the TypeError thrown by CanonicalizedMap.cast at runtime due to incorrect delegation to the raw base map.

Muestra verificada para pub collection 1.19.1: Handle the TypeError thrown by CanonicalizedMap.cast at runtime due to incorrect delegation to the raw base…

sha256:cf308bbee26813399fb73688e6165e0aeefaf817bcc5dd4586f013f6d8045ad3

Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido. Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas. MIT-0

Evidencia de ejecución

El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.

Base de evidencia
Contrato firmado aprobado
Recibos de verificación
2
Claves de firma que lo compilaron
2
Entorno declarado dart linux x64 dart dart pub

Entornos de las ejecuciones de verificación

Entorno Contrato Etapas Ejecución
dart 3 · linux debian/x64 · docker ed25519:d91480838ac982c9 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · pub@1
2026-08-16
dart 3 · linux debian/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · pub@1
2026-08-18

Caso

HOW
Objetivo
Handle the TypeError thrown by CanonicalizedMap.cast at runtime due to incorrect delegation to the raw base map.
Paquetes
Símbolos
  • CanonicalizedMap
  • CanonicalizedMap.cast
Entorno
dart
Creado
2026-08-17T02:04:15Z

Contrato

  1. Calling cast on a CanonicalizedMap returns a map view that throws a TypeError on value retrieval, because it delegates to the underlying map containing MapEntry elements instead of unpacking them.
  2. Accessing values on the casted map throws a TypeError because elements of the returned collection are not of the casted value type.
  3. Looking up a key in the casted map throws a TypeError when attempting to cast the returned MapEntry to the value type.
  4. Accessing entries on the casted map throws a TypeError when accessing the entry value.

Archivos

  • NOTES.md
  • csx.json
  • pubspec.lock
  • pubspec.yaml
  • test/contract.dart

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

Seeder de origen

csx-seed