setCursorColor method

void setCursorColor(
  1. RendererHandle renderer,
  2. Color color
)

Sets cursor color through setCursorStyleOptions.

Implementation

void setCursorColor(RendererHandle renderer, Color color) {
  validateColorChannels(color);
  _guardAlloc('Failed to set cursor color', (allocator) {
    _native.setCursorStyleOptions(
      renderer.value,
      _unchangedCursorOption,
      _unchangedCursorOption,
      _colorToNative(color, allocator),
    );
  });
}