resolveBackgroundClip static method

BackgroundBoundary resolveBackgroundClip(
  1. String value
)

Implementation

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