jumpTo method

void jumpTo(
  1. double size
)

Jumps the sheet to size immediately, without animation. size is clamped to the allowed [0.0, 1.0] range.

Implementation

void jumpTo(double size) {
  final clamped = size.clamp(0.0, 1.0);
  if (_size == clamped) return;
  _size = clamped;
  notifyListeners();
}