snap method

void snap()

Snaps the current value to the nearest integer.

Implementation

void snap() {
  _controller.value = _controller.value.roundToDouble();
}