whereBackgroundColor method

  1. @useResult
WidgetSelector<EditableText> whereBackgroundColor(
  1. MatchProp<Color> match
)

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

Example usage:

spot<EditableText>().whereBackgroundColor((it) => it.equals(Colors.red)).existsOnce();

Implementation

@useResult
WidgetSelector<EditableText> whereBackgroundColor(MatchProp<Color> match) {
  return withDiagnosticProp<Color>('backgroundColor', match);
}