maxWidth property

  1. @override
CSSLengthValue get maxWidth
override

Implementation

@override
CSSLengthValue get maxWidth => _maxWidth ?? CSSLengthValue.none;
set maxWidth (CSSLengthValue? value)

Implementation

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