NikuCheckbox constructor

NikuCheckbox(
  1. bool? value, {
  2. Key? key,
  3. ValueChanged<bool?>? onChanged,
  4. MouseCursor? mouseCursor,
  5. Color? activeColor,
  6. Color? fillColor,
  7. NikuState<Color?>? fillColorState,
  8. Color? checkColor,
  9. bool? tristate,
  10. MaterialTapTargetSize? materialTapTargetSize,
  11. VisualDensity? visualDensity,
  12. Color? focusColor,
  13. Color? hoverColor,
  14. Color? overlayColor,
  15. NikuState<Color?>? overlayColorState,
  16. double? splashRadius,
  17. FocusNode? focusNode,
  18. bool? autofocus,
  19. OutlinedBorder? shape,
  20. 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);
}