whereCursorColor method

  1. @useResult
WidgetSelector<TextField> whereCursorColor(
  1. MatchProp<Color> match
)

Creates a WidgetSelector that finds all TextField where cursorColor matches the condition.

Example usage:

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

Implementation

@useResult
WidgetSelector<TextField> whereCursorColor(MatchProp<Color> match) {
  return withDiagnosticProp<Color>('cursorColor', match);
}