linearGradient static method

Gradient linearGradient({
  1. required Color color,
  2. required int depth,
  3. Curvature curvature = Curvature.convex,
  4. Swell swell = Swell.emboss,
  5. Alignment begin = defaultLightSource,
  6. TileMode tileMode = TileMode.clamp,
  7. GradientTransform? transform,
})

Build a Neumorphic LinearGradient, the Gradient.colors for which are determined by evaluating color, depth, and the rest of the Neu-standard parameters.

This static method used entirely on its own is not that useful. Instead, this method is mostly employed by other methods to generate their required gradient property.

Implementation

static Gradient linearGradient({
  required Color color,
  required int depth,
  Curvature curvature = Curvature.convex,
  Swell swell = Swell.emboss,
  Alignment begin = defaultLightSource,
  TileMode tileMode = TileMode.clamp,
  GradientTransform? transform,
}) =>
    LinearGradient(
      colors: curvature.colorList(color, swell: swell, depth: depth),
      begin: begin,
      end: -begin,
      tileMode: tileMode,
      transform: transform,
    );