cursorWidth property
double
cursorWidth
How wide the cursor will be.
This can be null, in which case the getter will actually return preferredLineWidth.
Setting this to itself fixes the value to the current preferredLineWidth. Setting this to null returns the behavior of deferring to preferredLineWidth.
Implementation
double get cursorWidth => _cursorWidth ?? preferredLineWidth;
Implementation
set cursorWidth(double? value) {
if (_cursorWidth == value) return;
_cursorWidth = value;
markNeedsLayout();
}