StepperSwipe constructor
StepperSwipe({
- Key? key,
- required int initialValue,
- @Deprecated('use minValue:0 instead') bool withNaturalNumbers = false,
- bool withBackground = true,
- required ValueChanged<
int> onChanged, - Axis direction = Axis.horizontal,
- bool withSpring = true,
- Color counterTextColor = Colors.white,
- Color dragButtonColor = const Color(0xFF9874f8),
- Color iconsColor = Colors.white,
- bool withPlusMinus = false,
- Duration firstIncrementDuration = const Duration(milliseconds: 250),
- Duration secondIncrementDuration = const Duration(milliseconds: 100),
- int speedTransitionLimitCount = 3,
- int maxValue = 50,
- int minValue = -50,
- bool withFastCount = false,
- required int stepperValue,
Implementation
StepperSwipe({
Key? key,
required this.initialValue,
@Deprecated('use minValue:0 instead')
this.withNaturalNumbers = false,
this.withBackground = true,
required this.onChanged,
this.direction = Axis.horizontal,
this.withSpring = true,
this.counterTextColor = Colors.white,
this.dragButtonColor = const Color(0xFF9874f8),
this.iconsColor = Colors.white,
this.withPlusMinus = false,
this.firstIncrementDuration = const Duration(milliseconds: 250),
this.secondIncrementDuration = const Duration(milliseconds: 100),
this.speedTransitionLimitCount = 3,
this.maxValue=50,
this.minValue=-50,
this.withFastCount=false,
required this.stepperValue,
}) : super(key: key);