isScrolledToBeginning static method

bool isScrolledToBeginning([
  1. Finder? superTextFieldFinder
])

Returns true if the given SuperTextField has a scroll offset of zero, i.e., is scrolled to the beginning of the viewport.

This inspection applies to both horizontal and vertical scrolling text fields.

By default, this method expects a single SuperTextField in the widget tree and finds it byType. To specify one SuperTextField among many, pass a superTextFieldFinder.

Implementation

static bool isScrolledToBeginning([Finder? superTextFieldFinder]) {
  return findScrollOffset(superTextFieldFinder) == 0.0;
}