hasBackgroundColorWhere method
Expects that backgroundColor of FloatingActionButton matches the condition in match
.
Example usage:
spot<FloatingActionButton>().existsOnce().hasBackgroundColorWhere((it) => it.equals(Colors.red));
Implementation
WidgetMatcher<FloatingActionButton> hasBackgroundColorWhere(
MatchProp<Color> match) {
return hasDiagnosticProp<Color>('backgroundColor', match);
}