scrollToBottomByValue method

void scrollToBottomByValue(
  1. double offset
)

Implementation

void scrollToBottomByValue(double offset) {
  if (hasClients) {
    final currentOffset = position.pixels;
    if (currentOffset <= 0) return;
    if (currentOffset >= position.maxScrollExtent) return;
    jumpTo(
      currentOffset - offset,
    );
  }
}