fitHeight method

  1. @override
int fitHeight()
override

Returns the height this component should occupy based on its content or layout rules.

Implementation

@override
int fitHeight() {
  int height = 0;
  for (final child in childrenInstance) {
    height += child.fitHeight();
  }
  height += max(0, childrenInstance.length - 1) * childGap;
  return height;
}