hasTextAlignWhere method

WidgetMatcher<SelectableText> hasTextAlignWhere(
  1. MatchProp<TextAlign> match
)

Expects that textAlign of SelectableText matches the condition in match.

Example usage:

spot<SelectableText>().existsOnce().hasTextAlignWhere((it) => it.equals(TextAlign.values.first));

Implementation

WidgetMatcher<SelectableText> hasTextAlignWhere(MatchProp<TextAlign> match) {
  return hasDiagnosticProp<TextAlign>('textAlign', match);
}