paintCursorAboveText property Null safety
If the cursor should be painted on top of the text or underneath it.
By default, the cursor should be painted on top for iOS platforms and underneath for Android platforms.
Implementation
bool get paintCursorAboveText => _paintCursorOnTop;
Implementation
set paintCursorAboveText(bool value) {
if (_paintCursorOnTop == value) {
return;
}
_paintCursorOnTop = value;
// Clear cached built-in painters and reconfigure painters.
_cachedBuiltInForegroundPainters = null;
_cachedBuiltInPainters = null;
// Call update methods to rebuild and set the effective painters.
_updateForegroundPainter(_foregroundPainter);
_updatePainter(_painter);
}