withCursorColor method

  1. @useResult
WidgetSelector<SelectableText> withCursorColor(
  1. Color? value
)

Creates a WidgetSelector that finds all SelectableText where cursorColor equals (==) value.

Example usage:

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

Implementation

@useResult
WidgetSelector<SelectableText> withCursorColor(Color? value) {
  return withDiagnosticProp<Color>(
      'cursorColor', (it) => value == null ? it.isNull() : it.equals(value));
}