NCheckbox constructor

NCheckbox({
  1. Key? key,
  2. String? name,
  3. bool value = false,
  4. String shape = 'round',
  5. String? text,
  6. bool disabled = false,
  7. bool readonly = false,
  8. double iconSize = Style.checkboxSize,
  9. Color checkedColor = Style.checkboxCheckedIconColor,
  10. dynamic onChange(
    1. bool value
    )?,
})

Implementation

NCheckbox(
    {Key? key,
    this.name,
    this.value: false,
    this.shape: 'round',
    this.text,
    this.disabled: false,
    this.readonly: false,
    this.iconSize: Style.checkboxSize,
    this.checkedColor: Style.checkboxCheckedIconColor,
    this.onChange})
    : assert(["round", "square"].indexOf(shape) > -1,
          "shape must be round, or square"),
      super(key: key);