getLineLayout abstract method

({int width, int xOffset})? getLineLayout(
  1. double lineY,
  2. double lineHeight
)

Gets the layout parameters (width and x-offset) for a line at a specific Y position. Returns null if the line is outside the displayable area.

Implementation

({int width, int xOffset})? getLineLayout(double lineY, double lineHeight);