cursorColor property Null safety

Color? cursorColor
final

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.

Implementation

final Color? cursorColor;