withBackgroundColor method

  1. @useResult
WidgetSelector<EditableText> withBackgroundColor(
  1. Color? value
)

Creates a WidgetSelector that finds all EditableText where backgroundColor equals (==) value.

Example usage:

spot<EditableText>().withBackgroundColor(Colors.red).existsOnce();

Implementation

@useResult
WidgetSelector<EditableText> withBackgroundColor(Color? value) {
  return withDiagnosticProp<Color>('backgroundColor',
      (it) => value == null ? it.isNull() : it.equals(value));
}