RawCheckmark constructor
RawCheckmark({})
Creates a RawCheckmark widget.
The progress
, color
, weight
, rounded
, and size
parameters
allow customization of the checkmark's appearance.
Implementation
RawCheckmark({
Key? key,
double? progress,
Color? color,
double? weight,
bool? rounded,
bool? drawCross,
bool? drawDash,
double? size,
}) : super(
key: key,
size: size != null ? Size.square(size) : Size.zero,
painter: CheckmarkPainter(
progress: progress,
color: color,
weight: weight ?? (size != null ? size / 5 : 0),
rounded: rounded,
drawCross: drawCross,
drawDash: drawDash,
),
);