hasBackgroundWhere method

WidgetMatcher<Container> hasBackgroundWhere(
  1. MatchProp<Decoration> match
)

Expects that background of Container matches the condition in match.

Example usage:

spot<Container>().existsOnce().hasBackgroundWhere((it) => it.equals(BoxDecoration(color: Colors.blue)));

Implementation

WidgetMatcher<Container> hasBackgroundWhere(MatchProp<Decoration> match) {
  return hasDiagnosticProp<Decoration>('bg', match);
}