hasTextScaleFactor method

WidgetMatcher<Text> hasTextScaleFactor(
  1. double? value
)

Expects that textScaleFactor of Text equals (==) value.

Example usage:

spot<Text>().existsOnce().hasTextScaleFactor(10.5);

Implementation

WidgetMatcher<Text> hasTextScaleFactor(double? value) {
  return hasDiagnosticProp<double>('textScaleFactor',
      (it) => value == null ? it.isNull() : it.equals(value));
}