hasForegroundColorWhere method

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

Expects that foregroundColor of FloatingActionButton matches the condition in match.

Example usage:

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

Implementation

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