BasicCheckbox constructor

BasicCheckbox({
  1. Key? key,
  2. required bool? value,
  3. Color? activeColor,
  4. ValueChanged<bool?>? onChanged,
  5. ValueWaitChanged<bool?>? onWaitChanged,
  6. OutlinedBorder? shape,
})

Implementation

BasicCheckbox({
  super.key,
  required super.value,
  Color? activeColor,
  super.onChanged,
  super.onWaitChanged,
  OutlinedBorder? shape,
}) : super(
          builder: (bool? value, onChanged) => Checkbox(
              shape: shape,
              activeColor: activeColor ?? GlobalConfig().currentColor,
              value: value,
              onChanged: onChanged));