hasSelectionControls method

WidgetMatcher<SelectableText> hasSelectionControls(
  1. TextSelectionControls? value
)

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

Example usage:

spot<SelectableText>().existsOnce().hasSelectionControls(MaterialTextSelectionControls());

Implementation

WidgetMatcher<SelectableText> hasSelectionControls(
    TextSelectionControls? value) {
  return hasDiagnosticProp<TextSelectionControls>('selectionControls',
      (it) => value == null ? it.isNull() : it.equals(value));
}