resolveBackgroundOrigin static method

CSSBackgroundBoundary resolveBackgroundOrigin(
  1. String value
)

Implementation

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