width property

  1. @override
CSSLengthValue get width
override

Implementation

@override
CSSLengthValue get width =>  _width ?? CSSLengthValue.auto;
set width (CSSLengthValue? value)

Implementation

set width(CSSLengthValue? value) {
  // Negative value is invalid, auto value is parsed at layout stage.
  if ((value != null && value.value != null && value.value! < 0) || width == value) {
    return;
  }
  _width = value;
  _markSelfAndParentNeedsLayout();
}