ComparisonIndex constructor
const
ComparisonIndex({
- int version = comparisonReportVersion,
- required String base,
- required String against,
- required List<
ComparedItem> previewItems, - required List<
ScenarioComparison> scenarios, - String? head,
- String? headCommit,
- DateTime? at,
- int ms = 0,
- Map<
ComparedState, int> counts = const {}, - ComparisonFrames frames = ComparisonFrames.local,
- ExportedFrames exported = ExportedFrames.all,
- bool narrowed = false,
- List<
String> caveats = const [], - ComparisonHost? host,
- ComparisonTimings? timings,
- ComparedHalf previewsHalf = const ComparedHalf(),
- ComparedHalf? scenariosHalf,
- String? export,
- String? report,
Implementation
const ComparisonIndex({
this.version = comparisonReportVersion,
required this.base,
required this.against,
required this.previewItems,
required this.scenarios,
this.head,
this.headCommit,
this.at,
this.ms = 0,
this.counts = const {},
this.frames = ComparisonFrames.local,
this.exported = ExportedFrames.all,
this.narrowed = false,
this.caveats = const [],
this.host,
this.timings,
this.previewsHalf = const ComparedHalf(),
this.scenariosHalf,
this.export,
this.report,
});