EmergentCheckbox constructor

const EmergentCheckbox({
  1. Key? key,
  2. EmergentCheckboxStyle style = const EmergentCheckboxStyle(),
  3. required bool value,
  4. required EmergentCheckboxListener onChanged,
  5. Curve curve = Emergent.defaultCurve,
  6. Duration duration = Emergent.defaultDuration,
  7. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
  8. EdgeInsets margin = const EdgeInsets.all(0),
  9. bool isEnabled = true,
})

Implementation

const EmergentCheckbox({
  super.key,
  this.style = const EmergentCheckboxStyle(),
  required this.value,
  required this.onChanged,
  this.curve = Emergent.defaultCurve,
  this.duration = Emergent.defaultDuration,
  this.padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
  this.margin = const EdgeInsets.all(0),
  this.isEnabled = true,
});