height property

int get height

Implementation

int get height {
  var childHeight = children.isEmpty
      ? -1
      : children
          .reduce((value, element) =>
              element.height > value.height ? element : value)
          .height;

  return childHeight + 1;
}