performLayout method

  1. @override
void performLayout(
  1. Constraints constraints
)
override

Called to perform the actual layout computation for this render object.

Implementation

@override
void performLayout(Constraints constraints) {
  if (!identical(_items, _cachedItemsIdentity)) {
    _cachedMaxItemWidth = _computeMaxItemWidth();
    _cachedItemsIdentity = _items;
  }
  size = Size(_cachedMaxItemWidth + 2, _items.length);
}