BasfCheckbox constructor

const BasfCheckbox({
  1. required bool value,
  2. required void onChanged(
    1. bool
    ),
  3. Key? key,
  4. String? text,
  5. bool reverse = false,
  6. MainAxisAlignment alignment = MainAxisAlignment.start,
  7. Color? inactiveColor,
  8. Color? color,
  9. Color? activeSplashColor,
  10. Color? inactiveSplashColor,
  11. IconData? icon,
  12. Color? iconColor,
})

BasfCheckbox

Example:

 BasfCheckbox(
   text: 'Default value',
   value: _value,
   onChanged: (value) {
     _value = !value;
     setState(() {});
   },
 ),

Implementation

const BasfCheckbox({
  required this.value,
  required this.onChanged,
  super.key,
  this.text,
  this.reverse = false,
  this.alignment = MainAxisAlignment.start,
  this.inactiveColor,
  this.color,
  this.activeSplashColor,
  this.inactiveSplashColor,
  this.icon,
  this.iconColor,
});