hasForeground method

WidgetMatcher<Container> hasForeground(
  1. Decoration? value
)

Expects that foreground of Container equals (==) value.

Example usage:

spot<Container>().existsOnce().hasForeground(BoxDecoration(color: Colors.blue));

Implementation

WidgetMatcher<Container> hasForeground(Decoration? value) {
  return hasDiagnosticProp<Decoration>(
      'fg', (it) => value == null ? it.isNull() : it.equals(value));
}