NumberSelector.plain constructor

NumberSelector.plain({
  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 = 200.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.transparent,
  16. double borderWidth = 1.0,
  17. Color iconColor = Colors.black54,
  18. IconData incrementIcon = Icons.add,
  19. IconData decrementIcon = Icons.remove,
  20. IconData maxIcon = Icons.last_page,
  21. IconData minIcon = Icons.first_page,
  22. bool showMinMax = true,
  23. bool showSuffix = true,
  24. bool hasCenteredText = true,
  25. bool hasDividers = false,
  26. bool hasBorder = false,
  27. String prefixNaming = 'of',
  28. String? incrementTooltip,
  29. String? decrementTooltip,
  30. String? maxTooltip,
  31. String? minTooltip,
  32. TextStyle? textStyle,
  33. Duration delayUpdate = Duration.zero,
})

Implementation

factory NumberSelector.plain({
  Key? key,
  int? max,
  int? min,
  int step = 1,
  bool enabled = true,
  Function(int number)? onUpdate,
  int current = 0,
  double height = 50.0,
  double width = 200.0,
  double contentPadding = 20.0,
  double verticalDividerPadding = 5.0,
  double borderRadius = 2.0,
  Color borderColor = Colors.black26,
  Color dividerColor = Colors.black12,
  Color backgroundColor = Colors.transparent,
  double borderWidth = 1.0,
  Color iconColor = Colors.black54,
  IconData incrementIcon = Icons.add,
  IconData decrementIcon = Icons.remove,
  IconData maxIcon = Icons.last_page,
  IconData minIcon = Icons.first_page,
  bool showMinMax = true,
  bool showSuffix = true,
  bool hasCenteredText = true,
  bool hasDividers = false,
  bool hasBorder = false,
  String prefixNaming = 'of',
  String? incrementTooltip,
  String? decrementTooltip,
  String? maxTooltip,
  String? minTooltip,
  TextStyle? textStyle,
  Duration delayUpdate = Duration.zero,
}) =>
    NumberSelector(
      key: key,
      max: max,
      min: min,
      step: step,
      enabled: enabled,
      onUpdate: onUpdate,
      current: current,
      height: height,
      width: width,
      contentPadding: contentPadding,
      verticalDividerPadding: verticalDividerPadding,
      borderRadius: borderRadius,
      borderColor: borderColor,
      dividerColor: dividerColor,
      backgroundColor: backgroundColor,
      borderWidth: borderWidth,
      iconColor: iconColor,
      incrementIcon: incrementIcon,
      decrementIcon: decrementIcon,
      maxIcon: maxIcon,
      minIcon: minIcon,
      showMinMax: showMinMax,
      showSuffix: showSuffix,
      hasCenteredText: hasCenteredText,
      hasDividers: hasDividers,
      hasBorder: hasBorder,
      prefixNaming: prefixNaming,
      incrementTooltip: incrementTooltip,
      decrementTooltip: decrementTooltip,
      maxTooltip: maxTooltip,
      minTooltip: minTooltip,
      textStyle: textStyle,
      delayUpdate: delayUpdate,
    );