whereDecoration method

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

Example usage:

spot<TextField>().whereDecoration((it) => it.equals(InputDecoration())).existsOnce();

Implementation

@useResult
WidgetSelector<TextField> whereDecoration(MatchProp<InputDecoration> match) {
  return withDiagnosticProp<InputDecoration>('decoration', match);
}