NikuCheckbox constructor
NikuCheckbox(
- bool? value, {
- Key? key,
- ValueChanged<
bool?> ? onChanged, - MouseCursor? mouseCursor,
- Color? activeColor,
- Color? fillColor,
- NikuState<
Color?> ? fillColorState, - Color? checkColor,
- bool? tristate,
- MaterialTapTargetSize? materialTapTargetSize,
- VisualDensity? visualDensity,
- Color? focusColor,
- Color? hoverColor,
- Color? overlayColor,
- NikuState<
Color?> ? overlayColorState, - double? splashRadius,
- FocusNode? focusNode,
- bool? autofocus,
- OutlinedBorder? shape,
- BorderSide? side,
Implementation
NikuCheckbox(
this.value, {
Key? key,
this.onChanged,
this.mouseCursor,
this.activeColor,
Color? fillColor,
this.fillColorState,
this.checkColor,
this.tristate,
this.materialTapTargetSize,
this.visualDensity,
this.focusColor,
this.hoverColor,
Color? overlayColor,
this.overlayColorState,
this.splashRadius,
this.focusNode,
this.autofocus,
this.shape,
this.side,
}) : super(key: key) {
if (fillColor != null) fillColorState = NikuState.all(fillColor);
if (overlayColor != null) fillColorState = NikuState.all(overlayColor);
}