whereSelectionControls method

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

Example usage:

spot<SelectableText>().whereSelectionControls((it) => it.equals(MaterialTextSelectionControls())).existsOnce();

Implementation

@useResult
WidgetSelector<SelectableText> whereSelectionControls(
    MatchProp<TextSelectionControls> match) {
  return withDiagnosticProp<TextSelectionControls>(
      'selectionControls', match);
}