hasTextAlignWhere method

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

Expects that textAlign of Text matches the condition in match.

Example usage:

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

Implementation

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