NumberSelection constructor Null safety

const NumberSelection(
  1. {Key? key,
  2. int? initialValue,
  3. ValueChanged<int>? onChanged,
  4. Function? onOutOfConstraints,
  5. bool enableOnOutOfConstraintsAnimation = true,
  6. Axis direction = Axis.horizontal,
  7. bool withSpring = true,
  8. int maxValue = 100,
  9. int minValue = -100,
  10. NumberSelectionTheme? theme}
)

Implementation

const NumberSelection(
    {Key? key,
    this.initialValue,
    this.onChanged,
    this.onOutOfConstraints,
    this.enableOnOutOfConstraintsAnimation = true,
    this.direction = Axis.horizontal,
    this.withSpring = true,
    this.maxValue = 100,
    this.minValue = -100,
    this.theme})
    : super(key: key);