CSSBackground.gradient constructor

CSSBackground.gradient(
  1. CSSBackgroundGradient gradient, {
  2. CSSBackgroundBox? origin,
  3. CSSBackgroundBox? clip,
  4. CSSBackgroundAttachment? attachment,
  5. CSSBackgroundRepeat? repeat,
  6. String? position,
  7. String? size,
  8. CSSColor? color,
})

Implementation

CSSBackground.gradient(
  CSSBackgroundGradient gradient, {
  CSSBackgroundBox? origin,
  CSSBackgroundBox? clip,
  CSSBackgroundAttachment? attachment,
  CSSBackgroundRepeat? repeat,
  String? position,
  String? size,
  this.color,
}) : _images = [
        CSSBackgroundImage.gradient(gradient,
            origin: origin,
            clip: clip,
            attachment: attachment,
            repeat: repeat,
            position: position,
            size: size)
      ];