decrement method
- num? customStep
Decrement by step.
Implementation
void decrement([num? customStep]) {
final newValue = val - (customStep ?? step);
if (min != null && newValue < min!) {
emit(min!);
} else {
emit(newValue);
}
}
Decrement by step.
void decrement([num? customStep]) {
final newValue = val - (customStep ?? step);
if (min != null && newValue < min!) {
emit(min!);
} else {
emit(newValue);
}
}