withColor method

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

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

Example usage:

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

Implementation

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