hasFocusColorWhere method

WidgetMatcher<IconButton> hasFocusColorWhere(
  1. MatchProp<Color> match
)

Expects that focusColor of IconButton matches the condition in match.

Example usage:

spot<IconButton>().existsOnce().hasFocusColorWhere((it) => it.equals(Colors.red));

Implementation

WidgetMatcher<IconButton> hasFocusColorWhere(MatchProp<Color> match) {
  return hasDiagnosticProp<Color>('focusColor', match);
}