hasSelectionEnabledWhere method

WidgetMatcher<SelectableText> hasSelectionEnabledWhere(
  1. MatchProp<bool> match
)

Expects that selectionEnabled of SelectableText matches the condition in match.

Example usage:

spot<SelectableText>().existsOnce().hasSelectionEnabledWhere((it) => it.isTrue());

Implementation

WidgetMatcher<SelectableText> hasSelectionEnabledWhere(
    MatchProp<bool> match) {
  return hasDiagnosticProp<bool>('selectionEnabled', match);
}