hasScrollableExtent static method
Returns true if the given SuperTextField is scrollable, i.e., the content
exceeds the viewport size.
Implementation
static bool hasScrollableExtent([Finder? superTextFieldFinder]) {
final desktopScrollController = findDesktopScrollController(superTextFieldFinder);
if (desktopScrollController != null) {
return desktopScrollController.position.maxScrollExtent > 0;
}
final mobileScrollController = findMobileScrollController(superTextFieldFinder);
if (mobileScrollController != null) {
return mobileScrollController.endScrollOffset > 0;
}
throw Exception("Couldn't find a SuperTextField to check the scrollable extent. Finder: $superTextFieldFinder");
}