TouchSpin constructor

const TouchSpin({
  1. Key? key,
  2. num value = 1.0,
  3. ValueChanged<num>? onChanged,
  4. num min = 1.0,
  5. num max = 9999999.0,
  6. num step = 1.0,
  7. double iconSize = 24.0,
  8. NumberFormat? displayFormat,
  9. Icon subtractIcon = const Icon(Icons.remove),
  10. Icon addIcon = const Icon(Icons.add),
  11. EdgeInsetsGeometry iconPadding = const EdgeInsets.all(4.0),
  12. TextStyle textStyle = const TextStyle(fontSize: 24),
  13. Color? iconActiveColor,
  14. Color? iconDisabledColor,
  15. bool enabled = true,
})

Implementation

const TouchSpin({
  Key? key,
  this.value = 1.0,
  this.onChanged,
  this.min = 1.0,
  this.max = 9999999.0,
  this.step = 1.0,
  this.iconSize = 24.0,
  this.displayFormat,
  this.subtractIcon = const Icon(Icons.remove),
  this.addIcon = const Icon(Icons.add),
  this.iconPadding = const EdgeInsets.all(4.0),
  this.textStyle = const TextStyle(fontSize: 24),
  this.iconActiveColor,
  this.iconDisabledColor,
  this.enabled = true,
}) : super(key: key);