hasScrollPhysics method

WidgetMatcher<TextField> hasScrollPhysics(
  1. ScrollPhysics? value
)

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

Example usage:

spot<TextField>().existsOnce().hasScrollPhysics(BouncingScrollPhysics());

Implementation

WidgetMatcher<TextField> hasScrollPhysics(ScrollPhysics? value) {
  return hasDiagnosticProp<ScrollPhysics>('scrollPhysics',
      (it) => value == null ? it.isNull() : it.equals(value));
}