IrGradient constructor
IrGradient({})
Implementation
IrGradient({
required this.colors,
List<double>? stops,
this.radial = false,
this.sweep = false,
this.rotation = 0,
this.begin = (0, 0.5),
this.end = (1, 0.5),
this.center = (0.5, 0.5),
this.radius = 0.5,
this.size,
}) : stops =
stops ??
[
for (var i = 0; i < colors.length; i++)
colors.length == 1 ? 0 : i / (colors.length - 1),
];