Checkbox constructor
Checkbox({})
Implementation
Checkbox({
required this.value,
this.tristate = false,
this.activeColor = PdfColors.blue,
this.checkColor = PdfColors.white,
required this.name,
double width = 13,
double height = 13,
BoxDecoration? decoration,
this.replaces,
}) : radius = decoration?.shape == BoxShape.circle
? Radius.circular(math.max(height, width) / 2)
: decoration?.borderRadius?.uniform ?? Radius.zero,
super(
child: Container(
width: width,
height: height,
margin: const EdgeInsets.all(1),
decoration: decoration ??
BoxDecoration(
border: Border.all(
color: PdfColors.grey600,
width: 2,
))));