whereSelectionEnabled method

  1. @useResult
WidgetSelector<SelectableText> whereSelectionEnabled(
  1. MatchProp<bool> match
)

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

Example usage:

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

Implementation

@useResult
WidgetSelector<SelectableText> whereSelectionEnabled(MatchProp<bool> match) {
  return withDiagnosticProp<bool>('selectionEnabled', match);
}