Variable ListWidget._totalSize

total height of all items for Vertical orientation, or width for Horizontal

class ListWidget
{
  // ...
  int _totalSize;
  // ...
}