NumberSelector constructor

const NumberSelector({
  1. Key? key,
  2. int? max,
  3. int? min,
  4. int step = 1,
  5. bool enabled = true,
  6. dynamic onUpdate(
    1. int number
    )?,
  7. int current = 0,
  8. double height = 50.0,
  9. double? width = 350.0,
  10. double contentPadding = 20.0,
  11. double verticalDividerPadding = 5.0,
  12. double borderRadius = 2.0,
  13. Color borderColor = Colors.black26,
  14. Color dividerColor = Colors.black12,
  15. Color backgroundColor = Colors.white,
  16. double borderWidth = 1.0,
  17. Color iconColor = Colors.black54,
  18. IconData incrementIcon = Icons.chevron_right,
  19. IconData decrementIcon = Icons.chevron_left,
  20. IconData maxIcon = Icons.last_page,
  21. IconData minIcon = Icons.first_page,
  22. bool showMinMax = true,
  23. bool showSuffix = true,
  24. bool hasCenteredText = false,
  25. bool hasDividers = true,
  26. bool hasBorder = true,
  27. String prefixNaming = 'of',
  28. String? incrementTooltip = 'Increment',
  29. String? decrementTooltip = 'Decrement',
  30. String? maxTooltip = 'Max',
  31. String? minTooltip = 'Min',
  32. TextStyle? textStyle,
  33. Duration delayUpdate = Duration.zero,
})

Implementation

const NumberSelector({
  super.key,
  this.max,
  this.min,
  this.step = 1,
  this.enabled = true,
  this.onUpdate,
  this.current = 0,
  this.height = 50.0,
  this.width = 350.0,
  this.contentPadding = 20.0,
  this.verticalDividerPadding = 5.0,
  this.borderRadius = 2.0,
  this.borderColor = Colors.black26,
  this.dividerColor = Colors.black12,
  this.backgroundColor = Colors.white,
  this.borderWidth = 1.0,
  this.iconColor = Colors.black54,
  this.incrementIcon = Icons.chevron_right,
  this.decrementIcon = Icons.chevron_left,
  this.maxIcon = Icons.last_page,
  this.minIcon = Icons.first_page,
  this.showMinMax = true,
  this.showSuffix = true,
  this.hasCenteredText = false,
  this.hasDividers = true,
  this.hasBorder = true,
  this.prefixNaming = 'of',
  this.incrementTooltip = 'Increment',
  this.decrementTooltip = 'Decrement',
  this.maxTooltip = 'Max',
  this.minTooltip = 'Min',
  this.textStyle,
  this.delayUpdate = Duration.zero,
});