backgroundClip property

  1. @override
CSSBackgroundBoundary? backgroundClip
override

Background-clip

Implementation

@override
CSSBackgroundBoundary? get backgroundClip => _backgroundClip;
void backgroundClip=(CSSBackgroundBoundary? value)

Implementation

set backgroundClip(CSSBackgroundBoundary? value) {
  if (value == _backgroundClip) return;
  final isTextLayout = _backgroundClip == CSSBackgroundBoundary.text || value == CSSBackgroundBoundary.text;
  _backgroundClip = value;
  if (isTextLayout) {
    renderBoxModel?.visitChildren((child) {
      if (child is RenderTextBox) {
        child.markRenderParagraphNeedsLayout();
      }
    });
  }
  renderBoxModel?.markNeedsPaint();
}