fitWidth method
Returns the width this component should occupy based on its content or layout rules.
Implementation
@override
int fitWidth() {
  int width = 0;
  for (final child in childrenInstance) {
    width = max(child.fitWidth(), width);
  }
  return width;
}