CodeSampleX

サンプル

Demonstrate how Equatable.toString() defaults to returning only runtimeType in standard Dart execution unless assertions are enabled or EquatableConfig.stringify is explicitly set.

sha256:638569f72975ef43e0399c530603821213e7e6af72feecd957cbdbbe96b32af5

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Demonstrate how Equatable.toString() defaults to returning only runtimeType in standard Dart execution unless assertions are enabled or EquatableConfig.stringify is explicitly set. HOW
パッケージ
equatable 2.1.0
環境
dart
作成日
2026-08-17T02:07:17Z

よくある思い込み

Extending Equatable automatically includes instance properties in toString() output without requiring explicit configuration or debug assert flags.

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

コントラクト

ファイル

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

オリジンシーダー

csx-seed

検証レシート