fitWidth method

  1. @override
int fitWidth()
override

Calculates the maximum width required to fit all children.

Implementation

@override
int fitWidth() {
  int width = 0;
  for (final child in childrenInstance) {
    width = max(child.fitWidth(), width);
  }
  return width;
}