whiteSpace property

  1. @override
WhiteSpace get whiteSpace
override

Implementation

@override
WhiteSpace get whiteSpace {
  // Get style from self or closest parent if specified style property is not set
  // due to style inheritance.
  if (_whiteSpace == null && parent != null) {
    return parent!.whiteSpace;
  }
  return _whiteSpace ?? WhiteSpace.normal;
}
set whiteSpace (WhiteSpace? value)

Implementation

set whiteSpace(WhiteSpace? value) {
  if (_whiteSpace == value) return;
  _whiteSpace = value;
  // Update all the children layout and text with specified style property not set due to style inheritance.
   _markNestChildrenTextAndLayoutNeedsLayout(renderBoxModel!, WHITE_SPACE);
}