CodeSampleX

Ejemplo

collection 1.19.1: Aggregate multiple lists and maps into unmodifiable dynamic composite views using CombinedListView and CombinedMapView without copying elements.

Muestra verificada para pub collection 1.19.1: Aggregate multiple lists and maps into unmodifiable dynamic composite views using CombinedListView and…

sha256:c6bd6db96e21f043b976d4cd6e9b203e116e3462509132347cf88f49e2d5cab8

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-17
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
Aggregate multiple lists and maps into unmodifiable dynamic composite views using CombinedListView and CombinedMapView without copying elements.
Paquetes
Símbolos
  • CombinedListView
  • CombinedMapView
Entorno
dart
Creado
2026-08-17T17:28:26Z

Contrato

  1. CombinedListView and CombinedMapView create unmodifiable views across multiple underlying collections that reflect underlying structural mutations dynamically without copying.
  2. Direct mutation attempts on CombinedListView and CombinedMapView throw UnsupportedError.
  3. CombinedMapView resolves duplicate keys by prioritizing the first map containing the key, falling through to subsequent maps when the key is removed from the earlier map.
  4. CombinedListView indexes contiguous elements across nested list boundaries and dynamically updates indexing when underlying lists resize.

Archivos

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

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

Seeder de origen

csx-seed