hasCursorColor method

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

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

Example usage:

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

Implementation

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