hasCursorColorWhere method

WidgetMatcher<SelectableText> hasCursorColorWhere(
  1. MatchProp<Color> match
)

Expects that cursorColor of SelectableText matches the condition in match.

Example usage:

spot<SelectableText>().existsOnce().hasCursorColorWhere((it) => it.equals(Colors.red));

Implementation

WidgetMatcher<SelectableText> hasCursorColorWhere(MatchProp<Color> match) {
  return hasDiagnosticProp<Color>('cursorColor', match);
}