whereScrollPhysics method

Creates a WidgetSelector that finds all SelectableText where scrollPhysics matches the condition.

Example usage:

spot<SelectableText>().whereScrollPhysics((it) => it.equals(BouncingScrollPhysics())).existsOnce();

Implementation

@useResult
WidgetSelector<SelectableText> whereScrollPhysics(
    MatchProp<ScrollPhysics> match) {
  return withDiagnosticProp<ScrollPhysics>('scrollPhysics', match);
}