jumpTo method

bool jumpTo(
  1. String key,
  2. double offset
)

Jumps the scroll position to offset for the controller with key.

Returns true if successful, false otherwise.

Implementation

bool jumpTo(String key, double offset) {
  final controller = _controllers[key];
  if (controller == null || !controller.hasClients) return false;
  controller.jumpTo(offset);
  return true;
}