withBackground method

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

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

Example usage:

spot<EditableText>().withBackground(Paint()).existsOnce();

Implementation

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