CustomCheckbox constructor
const
CustomCheckbox({
- required bool? value,
- required ValueChanged<
bool?> ? onChanged, - Key? key,
- bool tristate = false,
- MouseCursor? mouseCursor,
- Color? activeColor,
- WidgetStateProperty<
Color?> ? fillColor, - Color? checkColor,
- Color? focusColor,
- Color? hoverColor,
- WidgetStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- MaterialTapTargetSize? materialTapTargetSize,
- VisualDensity? visualDensity,
- FocusNode? focusNode,
- bool autofocus = false,
- OutlinedBorder? shape,
- BorderSide? side,
- bool isError = false,
- String? semanticLabel,
- String? titleText,
- Widget? title,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
Checkbox 复选框组件
Implementation
const CustomCheckbox({
required this.value,
required this.onChanged,
super.key,
this.tristate = false,
this.mouseCursor,
this.activeColor,
this.fillColor,
this.checkColor,
this.focusColor,
this.hoverColor,
this.overlayColor,
this.splashRadius,
this.materialTapTargetSize,
this.visualDensity,
this.focusNode,
this.autofocus = false,
this.shape,
this.side,
this.isError = false,
this.semanticLabel,
this.titleText,
this.title,
this.margin,
this.padding,
});