whereTextDirection method

  1. @useResult
WidgetSelector<Text> whereTextDirection(
  1. MatchProp<TextDirection> match
)

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

Example usage:

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

Implementation

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