CheckmarkPainter constructor

CheckmarkPainter({
  1. double? progress,
  2. Color? color,
  3. double? weight,
  4. bool? rounded,
  5. bool? drawCross,
  6. bool? drawDash,
})

Creates a CheckmarkPainter for painting a checkmark on a canvas.

The progress, color, weight, and rounded parameters allow customization of the checkmark's appearance.

Implementation

CheckmarkPainter({
  double? progress,
  Color? color,
  double? weight,
  bool? rounded,
  bool? drawCross,
  bool? drawDash,
})  : progress = progress ?? 1.0,
      color = color ?? const Color(0xDD000000),
      weight = weight ?? 1.0,
      drawCross = drawCross ?? false,
      drawDash = drawDash ?? true,
      rounded = rounded ?? false;