CodeSampleX

サンプル

Demonstrate that EquatableConfig.stringify defaults to true in debug mode (assertions enabled) in v2.0.0, enabling property stringification by default.

sha256:06a1477df6b12e3b1f576c70f050420128cd4aa9fd36e51bc1c81e36172685ef

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Demonstrate that EquatableConfig.stringify defaults to true in debug mode (assertions enabled) in v2.0.0, enabling property stringification by default. HOW
パッケージ
equatable 2.0.0
環境
dart
作成日
2026-08-17T02:09:11Z

よくある思い込み

An Equatable object's toString method only outputs its properties if stringify is locally overridden to true or if EquatableConfig.stringify is explicitly enabled.

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

コントラクト

ファイル

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

オリジンシーダー

csx-seed

検証レシート