CheckboxState constructor
const
CheckboxState({
- Key? key,
- required bool? value,
- bool tristate = false,
- ValueChanged<
bool?> ? onChanged, - CheckboxStateChanged? onWaitChanged,
- MouseCursor? mouseCursor,
- Color? activeColor,
- MaterialStateProperty<
Color?> ? fillColor, - Color? checkColor,
- Color? focusColor,
- Color? hoverColor,
- MaterialStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- MaterialTapTargetSize? materialTapTargetSize,
- VisualDensity? visualDensity,
- FocusNode? focusNode,
- bool autofocus = false,
- OutlinedBorder? shape,
- BorderSide? side,
- ValueCallback<
BuildContext> ? initState, - ValueCallback<
BuildContext> ? dispose, - ValueCallback<
BuildContext> ? didChangeDependencies, - ValueCallback<
BuildContext> ? didUpdateWidget,
Implementation
const CheckboxState({
super.key,
required this.value,
this.tristate = false,
this.onChanged,
this.onWaitChanged,
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.initState,
this.dispose,
this.didChangeDependencies,
this.didUpdateWidget,
}) : assert(tristate || value != null);