hasTextScaleFactorWhere method

WidgetMatcher<Text> hasTextScaleFactorWhere(
  1. MatchProp<double> match
)

Expects that textScaleFactor of Text matches the condition in match.

Example usage:

spot<Text>().existsOnce().hasTextScaleFactorWhere((it) => it.isGreaterThan(10.5));

Implementation

WidgetMatcher<Text> hasTextScaleFactorWhere(MatchProp<double> match) {
  return hasDiagnosticProp<double>('textScaleFactor', match);
}