ProgressChartPainter constructor

ProgressChartPainter({
  1. double value = 0.2,
  2. Animation<double>? animation,
  3. List<Color> colors = const [Color(0xFF1545FD), Color(0xFF0984F9)],
  4. Color backgroundColor = const Color(0x7A90C9FF),
  5. double radius = 4,
  6. bool alwaysShowRadius = true,
})

Implementation

ProgressChartPainter(
    {this.value = 0.2,
    this.animation,
    this.colors = const [Color(0xFF1545FD), Color(0xFF0984F9)],
    this.backgroundColor = const Color(0x7A90C9FF),
    this.radius = 4,
    this.alwaysShowRadius = true})
    : super(repaint: animation) {
  assert(colors.isNotEmpty, 'colors must not be empty');
}