whereForeground method

  1. @useResult
WidgetSelector<EditableText> whereForeground(
  1. MatchProp<Paint> match
)

Creates a WidgetSelector that finds all EditableText where foreground matches the condition.

Example usage:

spot<EditableText>().whereForeground((it) => it.equals(Paint())).existsOnce();

Implementation

@useResult
WidgetSelector<EditableText> whereForeground(MatchProp<Paint> match) {
  return withDiagnosticProp<Paint>('foreground', match);
}