whereCursorColor method

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

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

Example usage:

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

Implementation

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