hasSelectionControlsWhere method

WidgetMatcher<TextField> hasSelectionControlsWhere(
  1. MatchProp<TextSelectionControls> match
)

Expects that selectionControls of TextField matches the condition in match.

Example usage:

spot<TextField>().existsOnce().hasSelectionControlsWhere((it) => it.equals(MaterialTextSelectionControls()));

Implementation

WidgetMatcher<TextField> hasSelectionControlsWhere(
    MatchProp<TextSelectionControls> match) {
  return hasDiagnosticProp<TextSelectionControls>('selectionControls', match);
}