hasForegroundColorWhere method
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);
}