resolveBackgroundClip static method

CSSBackgroundBoundary resolveBackgroundClip(
  1. String value
)

Implementation

static CSSBackgroundBoundary resolveBackgroundClip(String value) {
  switch (value) {
    case 'padding-box':
      return CSSBackgroundBoundary.paddingBox;
    case 'content-box':
      return CSSBackgroundBoundary.contentBox;
    case 'text':
      return CSSBackgroundBoundary.text;
    case 'border-box':
    default:
      return CSSBackgroundBoundary.borderBox;
  }
}