hasScrollController method

WidgetMatcher<TextField> hasScrollController(
  1. ScrollController? value
)

Expects that scrollController of TextField equals (==) value.

Example usage:

spot<TextField>().existsOnce().hasScrollController(ScrollController());

Implementation

WidgetMatcher<TextField> hasScrollController(ScrollController? value) {
  return hasDiagnosticProp<ScrollController>('scrollController',
      (it) => value == null ? it.isNull() : it.equals(value));
}