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