withForeground method
Creates a WidgetSelector that finds all Container where foreground equals (==) value
.
Example usage:
spot<Container>().withForeground(BoxDecoration(color: Colors.blue)).existsOnce();
Implementation
@useResult
WidgetSelector<Container> withForeground(Decoration? value) {
return withDiagnosticProp<Decoration>(
'fg', (it) => value == null ? it.isNull() : it.equals(value));
}