scrollToTopByValue method

void scrollToTopByValue(
  1. double offset
)

Implementation

void scrollToTopByValue(double offset) {
  if (hasClients) {
    final currentOffset = position.pixels;
    if (currentOffset < 10) return;
    jumpTo(
      currentOffset + offset,
    );
  }
}