hasObscureTextWhere method

WidgetMatcher<TextField> hasObscureTextWhere(
  1. MatchProp<bool> match
)

Expects that obscureText of TextField matches the condition in match.

Example usage:

spot<TextField>().existsOnce().hasObscureTextWhere((it) => it.isTrue());

Implementation

WidgetMatcher<TextField> hasObscureTextWhere(MatchProp<bool> match) {
  return hasDiagnosticProp<bool>('obscureText', match);
}