backgroundClip property

  1. @override
CSSBackgroundBoundary? get backgroundClip
override

Background-clip

Implementation

@override
CSSBackgroundBoundary? get backgroundClip => _backgroundClip;
set 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();
}