hasScrollControllerWhere method

WidgetMatcher<TextField> hasScrollControllerWhere(
  1. MatchProp<ScrollController> match
)

Expects that scrollController of TextField matches the condition in match.

Example usage:

spot<TextField>().existsOnce().hasScrollControllerWhere((it) => it.equals(ScrollController()));

Implementation

WidgetMatcher<TextField> hasScrollControllerWhere(
    MatchProp<ScrollController> match) {
  return hasDiagnosticProp<ScrollController>('scrollController', match);
}