CssBackgroundImage.linearGradient constructor

CssBackgroundImage.linearGradient({
  1. CssGradientDirection? direction,
  2. required List<CssGradientStop> stops,
  3. bool repeating,
})

Linear gradient.

direction can be an angle (e.g. '45deg') or side/corner (e.g. 'to bottom right').

Implementation

factory CssBackgroundImage.linearGradient({
  CssGradientDirection? direction,
  required List<CssGradientStop> stops,
  bool repeating,
}) = _CssBackgroundImageLinearGradient;