paint method

void paint(
  1. Canvas canvas
)

Implementation

void paint(Canvas canvas) {
  final floatingCursorRect = this.floatingCursorRect;
  final floatingCursorColor = style.color.withOpacity(0.75);
  if (floatingCursorRect == null) return;
  canvas.drawRRect(
    RRect.fromRectAndRadius(floatingCursorRect, _kFloatingCaretRadius),
    floatingCursorPaint..color = floatingCursorColor,
  );
}