getCSSBackgroundAttachmentName function

String? getCSSBackgroundAttachmentName(
  1. CSSBackgroundAttachment? clip
)

Implementation

String? getCSSBackgroundAttachmentName(CSSBackgroundAttachment? clip) {
  if (clip == null) return null;

  switch (clip) {
    case CSSBackgroundAttachment.scroll:
      return 'scroll';
    case CSSBackgroundAttachment.fixed:
      return 'fixed';
    case CSSBackgroundAttachment.local:
      return 'local';
  }
}