GitHubHeatmap constructor

const GitHubHeatmap({
  1. Key? key,
  2. required int year,
  3. required Map<DateTime, int> data,
  4. Color baseColor = const Color(0xFF4CAF50),
  5. int levels = 5,
  6. double cellSize = 12,
  7. double cellSpacing = 2,
  8. ValueChanged<DateTime>? onDayTap,
})

Implementation

const GitHubHeatmap({
  super.key,
  required this.year,
  required this.data,
  this.baseColor = const Color(0xFF4CAF50),
  this.levels = 5,
  this.cellSize = 12,
  this.cellSpacing = 2,
  this.onDayTap,
});