hasFocusColorWhere method

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

Expects that focusColor of FloatingActionButton matches the condition in match.

Example usage:

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

Implementation

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