BaseCheckbox constructor

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

Implementation

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