whereObscureText method

  1. @useResult
WidgetSelector<TextField> whereObscureText(
  1. MatchProp<bool> match
)

Creates a WidgetSelector that finds all TextField where obscureText matches the condition.

Example usage:

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

Implementation

@useResult
WidgetSelector<TextField> whereObscureText(MatchProp<bool> match) {
  return withDiagnosticProp<bool>('obscureText', match);
}