snap method
void
snap()
Snaps the current value to the nearest integer.
Implementation
void snap() {
_controller.value = _controller.value.roundToDouble();
}
Snaps the current value to the nearest integer.
void snap() {
_controller.value = _controller.value.roundToDouble();
}