hasDecorationWhere method

WidgetMatcher<TextField> hasDecorationWhere(
  1. MatchProp<InputDecoration> match
)

Expects that decoration of TextField matches the condition in match.

Example usage:

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

Implementation

WidgetMatcher<TextField> hasDecorationWhere(
    MatchProp<InputDecoration> match) {
  return hasDiagnosticProp<InputDecoration>('decoration', match);
}