cursorHeight property

double cursorHeight

How tall the cursor will be.

This can be null, in which case the getter will actually return preferredLineHeight.

Setting this to itself fixes the value to the current preferredLineHeight. Setting this to null returns the behavior of deferring to preferredLineHeight.

Implementation

// TODO(ianh): This is a confusing API. We should have a separate getter for the effective cursor height.
double get cursorHeight => _cursorHeight ?? preferredLineHeight;
void cursorHeight=(double? value)

Implementation

set cursorHeight(double? value) {
  if (_cursorHeight == value) {
    return;
  }
  _cursorHeight = value;
  markNeedsLayout();
}