cursorOffset property Null safety

Offset cursorOffset

The offset that is used, in pixels, when painting the cursor on screen.

By default, the cursor position should be set to an offset of (-cursorWidth * 0.5, 0.0) on iOS platforms and (0, 0) on Android platforms. The origin from where the offset is applied to is the arbitrary location where the cursor ends up being rendered from by default.

Implementation

Offset get cursorOffset => _caretPainter.cursorOffset;
void cursorOffset=(Offset value)

Implementation

set cursorOffset(Offset value) {
  _caretPainter.cursorOffset = value;
}