Checkbox

Overview

Checkboxes are used for multiple choices, not for mutually exclusive choices. Each checkbox works independently from other checkboxes in the list, therefore checking an additional box does not affect any other selections.

Widget API

Example

CCheckbox(
  enable: false,
  value: value,
  onChange: (value) {
    setState(() => value = !value);
  },
),

Last updated