positionToPixel abstract method

PixelResult positionToPixel(
  1. int globalPosition,
  2. Axis axis, {
  3. required bool isForFrozenPanes,
})

Converts a global column/row index into a pixel coordinate (Offset) of the top/left edge of that position in the viewport on the axis axis.

Use isForFrozenPanes to consider frozen dimension instead of the scrollable ones.

Implementation

PixelResult positionToPixel(
  int globalPosition,
  Axis axis, {
  required bool isForFrozenPanes,
});