hasScrollPhysics method

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

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

Example usage:

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

Implementation

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