hasStyleWhere method

WidgetMatcher<TextField> hasStyleWhere(
  1. MatchProp<TextStyle> match
)

Expects that style of TextField matches the condition in match.

Example usage:

spot<TextField>().existsOnce().hasStyleWhere((it) => it.equals(TextStyle()));

Implementation

WidgetMatcher<TextField> hasStyleWhere(MatchProp<TextStyle> match) {
  return hasDiagnosticProp<TextStyle>('style', match);
}