resolveBackgroundOrigin static method

BackgroundBoundary resolveBackgroundOrigin(
  1. String value
)

Implementation

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