EmergentCheckbox constructor
const
EmergentCheckbox({
- Key? key,
- EmergentCheckboxStyle style = const EmergentCheckboxStyle(),
- required bool value,
- required EmergentCheckboxListener onChanged,
- Curve curve = Emergent.defaultCurve,
- Duration duration = Emergent.defaultDuration,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
- EdgeInsets margin = const EdgeInsets.all(0),
- 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,
});