ComparisonIndex constructor

const ComparisonIndex({
  1. int version = comparisonReportVersion,
  2. required String base,
  3. required String against,
  4. required List<ComparedItem> previewItems,
  5. required List<ScenarioComparison> scenarios,
  6. String? head,
  7. String? headCommit,
  8. DateTime? at,
  9. int ms = 0,
  10. Map<ComparedState, int> counts = const {},
  11. ComparisonFrames frames = ComparisonFrames.local,
  12. ExportedFrames exported = ExportedFrames.all,
  13. bool narrowed = false,
  14. List<String> caveats = const [],
  15. ComparisonHost? host,
  16. ComparisonTimings? timings,
  17. ComparedHalf previewsHalf = const ComparedHalf(),
  18. ComparedHalf? scenariosHalf,
  19. String? export,
  20. 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,
});