buildRecordingCheckboxListTile function
Implementation
Widget buildRecordingCheckboxListTile(CheckboxListTile checkbox, widget) {
return CheckboxListTile(
title: checkbox.title,
subtitle: checkbox.subtitle,
isThreeLine: checkbox.isThreeLine,
dense: checkbox.dense,
contentPadding: checkbox.contentPadding,
secondary: checkbox.secondary,
selected: checkbox.selected,
controlAffinity: checkbox.controlAffinity,
autofocus: checkbox.autofocus,
shape: checkbox.shape,
side: checkbox.side,
value: checkbox.value,
onChanged: (value) async {
debugPrint(
'[SelfTest] Recording checkbox change for "${widget.id}": $value',
);
await SelfTestManager().recordTap(widget.id);
if (checkbox.onChanged != null) {
checkbox.onChanged!(value);
} else {
widget.onTap?.call();
}
},
activeColor: checkbox.activeColor,
checkColor: checkbox.checkColor,
fillColor: checkbox.fillColor,
hoverColor: checkbox.hoverColor,
overlayColor: checkbox.overlayColor,
splashRadius: checkbox.splashRadius,
materialTapTargetSize: checkbox.materialTapTargetSize,
visualDensity: checkbox.visualDensity,
focusNode: checkbox.focusNode,
enableFeedback: checkbox.enableFeedback,
tristate: checkbox.tristate,
);
}