NeumorphicCheckbox constructor

NeumorphicCheckbox({
  1. NeumorphicCheckboxStyle style = const NeumorphicCheckboxStyle(),
  2. required bool value,
  3. required NeumorphicCheckboxListener onChanged,
  4. Curve curve = Neumorphic.DEFAULT_CURVE,
  5. Duration duration = Neumorphic.DEFAULT_DURATION,
  6. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16.0, vertical: 12.0),
  7. EdgeInsets margin = const EdgeInsets.all(0),
  8. 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,
});