getLinearGradient method
Implementation
LinearGradient? getLinearGradient(double value) {
if (startColors == null || endColors == null) return null;
return LinearGradient(
colors: lerpColors(startColors, endColors, value) ?? [],
stops: lerpStops(startStops, endStops, value),
begin: startAlignment ?? Alignment.topLeft,
end: endAlignment ?? Alignment.bottomRight,
);
}