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