CheckmarkPainter constructor
CheckmarkPainter({})
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;