setWidth method
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);
}