withForeground method

  1. @useResult
WidgetSelector<EditableText> withForeground(
  1. Paint? value
)

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