hasBackgroundColorWhere method

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

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