whereTextDirection method

Creates a WidgetSelector that finds all EditableText where textDirection matches the condition.

Example usage:

spot<EditableText>().whereTextDirection((it) => it.equals(TextDirection.values.first)).existsOnce();

Implementation

@useResult
WidgetSelector<EditableText> whereTextDirection(
    MatchProp<TextDirection> match) {
  return withDiagnosticProp<TextDirection>('textDirection', match);
}