cursorColor property
final
The color of the cursor.
The cursor indicates the current text insertion point.
If null then DefaultSelectionStyle.cursorColor is used. If that is also null and ThemeData.platform is TargetPlatform.iOS or TargetPlatform.macOS, then CupertinoThemeData.primaryColor is used. Otherwise ColorScheme.primary of ThemeData.colorScheme is used.
Implementation
final Color? cursorColor;