getOffset method

Offset getOffset(
  1. int column,
  2. int row
)

Gets the top-left offset of a cell at the specified position.

Calculates the cumulative offset by summing the widths of all columns before the specified column and heights of all rows before the specified row.

Parameters:

  • column (int, required): Zero-based column index
  • row (int, required): Zero-based row index

Throws AssertionError if called before layout is complete.

Returns Offset representing the cell's top-left corner position.

Implementation

Offset getOffset(int column, int row) {
  assert(_layoutResult != null, 'Layout result is not available');
  return _layoutResult!.getOffset(column, row);
}