linearGradient static method
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,
);