getCSSBackgroundBoxName function

String? getCSSBackgroundBoxName(
  1. CSSBackgroundBox? clip
)

Implementation

String? getCSSBackgroundBoxName(CSSBackgroundBox? clip) {
  if (clip == null) return null;

  switch (clip) {
    case CSSBackgroundBox.borderBox:
      return 'border-box';
    case CSSBackgroundBox.paddingBox:
      return 'padding-box';
    case CSSBackgroundBox.contentBox:
      return 'content-box';
    default:
      return null;
  }
}