scrollToTopByValue method
Scrolls toward older messages by offset.
Implementation
void scrollToTopByValue(double offset) {
if (!hasClients) return;
final currentOffset = position.pixels;
if (reverse) {
if (currentOffset >= position.maxScrollExtent) return;
jumpTo(currentOffset + offset);
} else {
if (currentOffset <= 0) return;
jumpTo(currentOffset - offset);
}
}