paintCursorAboveText property

bool paintCursorAboveText

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.


bool get paintCursorAboveText => _paintCursorOnTop;
void paintCursorAboveText=(bool value)


set paintCursorAboveText(bool value) {
  if (_paintCursorOnTop == value) {
  _paintCursorOnTop = value;
  // Clear cached built-in painters and reconfigure painters.
  _cachedBuiltInForegroundPainters = null;
  _cachedBuiltInPainters = null;
  // Call update methods to rebuild and set the effective painters.