NeumorphismCheckbox constructor
const
NeumorphismCheckbox({
- Key? key,
- NeumorphismCheckboxStyle style = const NeumorphismCheckboxStyle(),
- required bool value,
- required NeumorphismCheckboxListener onChanged,
- Curve curve = Neumorphism.DEFAULT_CURVE,
- Duration duration = Neumorphism.DEFAULT_DURATION,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
- EdgeInsets margin = const EdgeInsets.all(0),
- dynamic isEnabled = true,
Implementation
const NeumorphismCheckbox({
super.key,
this.style = const NeumorphismCheckboxStyle(),
required this.value,
required this.onChanged,
this.curve = Neumorphism.DEFAULT_CURVE,
this.duration = Neumorphism.DEFAULT_DURATION,
this.padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
this.margin = const EdgeInsets.all(0),
this.isEnabled = true,
});