Counter constructor
Counter({
- required num min,
- required num max,
- num? initial,
- num? bound,
- num step = 1,
- Configuration? configuration,
- ValueChanged<
num> ? onValueChanged, - Key? key,
Implementation
Counter({
required this.min,
required this.max,
this.initial,
this.bound,
this.step = 1,
Configuration? configuration,
this.onValueChanged,
Key? key,
}) : assert(min < max),
assert(initial == null || (initial >= min && initial <= max)),
assert(bound == null || (bound >= min && bound <= max)),
assert(initial == null || bound == null || initial >= bound),
assert(step > 0),
configuration = configuration ?? DefaultConfiguration(),
super(key: key);