hasCursorColor method

WidgetMatcher<TextField> hasCursorColor(
  1. Color? value
)

Expects that cursorColor of TextField equals (==) value.

Example usage:

spot<TextField>().existsOnce().hasCursorColor(Colors.red);

Implementation

WidgetMatcher<TextField> hasCursorColor(Color? value) {
  return hasDiagnosticProp<Color>(
      'cursorColor', (it) => value == null ? it.isNull() : it.equals(value));
}