hasCursorColorWhere method

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

Expects that cursorColor of TextField matches the condition in match.

Example usage:

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

Implementation

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