NeumorphismCheckbox constructor

const NeumorphismCheckbox({
  1. Key? key,
  2. NeumorphismCheckboxStyle style = const NeumorphismCheckboxStyle(),
  3. required bool value,
  4. required NeumorphismCheckboxListener onChanged,
  5. Curve curve = Neumorphism.DEFAULT_CURVE,
  6. Duration duration = Neumorphism.DEFAULT_DURATION,
  7. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
  8. EdgeInsets margin = const EdgeInsets.all(0),
  9. 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,
});