cursorColor property Null safety

Color? cursorColor

The color of the cursor.

The cursor indicates the current location of text insertion point in the field.

If this is null it will default to the ambient DefaultSelectionStyle.cursorColor. If that is null, and the ThemeData.platform is TargetPlatform.iOS or TargetPlatform.macOS it will use CupertinoThemeData.primaryColor. Otherwise it will use the value of ColorScheme.primary of ThemeData.colorScheme.


final Color? cursorColor;