setCursorStyle method

void setCursorStyle(
  1. Pointer<RendererHandle> renderer,
  2. String style,
  3. bool blinking
)

Sets renderer's cursor shape to style with optional blinking. Throws FFIException on failure.

Implementation

void setCursorStyle(
  Pointer<RendererHandle> renderer,
  String style,
  bool blinking,
) {
  _guardAlloc('Failed to set cursor style', (alloc) {
    final (stylePtr, styleLen) = _utf8(alloc, style);
    _generated.setCursorStyle(renderer.cast(), stylePtr, styleLen, blinking);
  });
}