measure method

BorderMetrics measure([
  1. BorderSides sides = BorderSides.all
])

Measures the border geometry for the visible sides.

Implementation

BorderMetrics measure([BorderSides sides = BorderSides.all]) {
  if (!isVisible) return const BorderMetrics.none();
  return BorderMetrics(
    leftCells: sides.left ? getLeftSize() : 0,
    rightCells: sides.right ? getRightSize() : 0,
    topRows: sides.top ? getTopSize() : 0,
    bottomRows: sides.bottom ? getBottomSize() : 0,
  );
}