CodeSampleX

サンプル

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

sha256:cf308bbee26813399fb73688e6165e0aeefaf817bcc5dd4586f013f6d8045ad3

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Handle the TypeError thrown by CanonicalizedMap.cast at runtime due to incorrect delegation to the raw base map. HOW
パッケージ
collection 1.19.1
環境
dart
作成日
2026-08-17T02:04:15Z

よくある思い込み

Calling cast on a CanonicalizedMap returns a valid Map wrapper that soundly checks and casts its keys and values for runtime lookups and iterations.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート