setWidth method

Container setWidth(
  1. double value
)

Implementation

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