withCursorColor method
Creates a WidgetSelector that finds all TextField where cursorColor equals (==) value
.
Example usage:
spot<TextField>().withCursorColor(Colors.red).existsOnce();
Implementation
@useResult
WidgetSelector<TextField> withCursorColor(Color? value) {
return withDiagnosticProp<Color>(
'cursorColor', (it) => value == null ? it.isNull() : it.equals(value));
}