hasObscureText method
Expects that obscureText of TextField equals (==) value
.
Example usage:
spot<TextField>().existsOnce().hasObscureText(true);
Implementation
WidgetMatcher<TextField> hasObscureText(bool? value) {
return hasDiagnosticProp<bool>(
'obscureText', (it) => value == null ? it.isNull() : it.equals(value));
}