hasTextDirectionWhere method

WidgetMatcher<Wrap> hasTextDirectionWhere(
  1. MatchProp<TextDirection> match
)

Expects that textDirection of Wrap matches the condition in match.

Example usage:

spot<Wrap>().existsOnce().hasTextDirectionWhere((it) => it.equals(TextDirection.values.first));

Implementation

WidgetMatcher<Wrap> hasTextDirectionWhere(MatchProp<TextDirection> match) {
  return hasDiagnosticProp<TextDirection>('textDirection', match);
}