setHeight method

Container setHeight(
  1. double value
)

Implementation

Container setHeight(double value) {
  if (this is SizedBox) {
    final thisWidget = this as SizedBox;
    return Container(
        child: thisWidget.child, width: thisWidget.width, height: value);
  }
  if (this is Container) {
    return (this as Container).setHeight(value);
  }
  return Container(height: value, child: this);
}