DCFGradient.linear constructor
DCFGradient.linear({})
Create a linear gradient
Implementation
factory DCFGradient.linear({
required List<Color> colors,
List<double>? stops,
double startX = 0.0,
double startY = 0.0,
double endX = 1.0,
double endY = 1.0,
}) {
return DCFGradient(
type: DCFGradientType.linear,
colors: colors,
stops: stops,
startX: startX,
startY: startY,
endX: endX,
endY: endY,
);
}