hasForegroundWhere method

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

Expects that foreground of Container matches the condition in match.

Example usage:

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

Implementation

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