DrawableGradient constructor
const
DrawableGradient(
- List<
double> ? offsets, - List<
Color> ? colors, { - TileMode spreadMethod = TileMode.clamp,
- GradientUnitMode unitMode = GradientUnitMode.objectBoundingBox,
- Float64List? transform,
Initializes basic values.
Implementation
const DrawableGradient(
this.offsets,
this.colors, {
this.spreadMethod = TileMode.clamp,
this.unitMode = GradientUnitMode.objectBoundingBox,
this.transform,
});