NeumorphicCheckbox constructor
NeumorphicCheckbox({
- NeumorphicCheckboxStyle style = const NeumorphicCheckboxStyle(),
- required bool value,
- required NeumorphicCheckboxListener onChanged,
- Curve curve = Neumorphic.DEFAULT_CURVE,
- Duration duration = Neumorphic.DEFAULT_DURATION,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
- EdgeInsets margin = const EdgeInsets.all(0),
- dynamic isEnabled = true,
Implementation
NeumorphicCheckbox({
this.style = const NeumorphicCheckboxStyle(),
required this.value,
required this.onChanged,
this.curve = Neumorphic.DEFAULT_CURVE,
this.duration = Neumorphic.DEFAULT_DURATION,
this.padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
this.margin = const EdgeInsets.all(0),
this.isEnabled = true,
});