CoderAnimatedGradientContainer constructor
const
CoderAnimatedGradientContainer({
- Key? key,
- required List<
Color> gradientColors, - required double gradientAngle,
- required BorderRadiusGeometry borderRadius,
Creates a CoderAnimatedGradientContainer.
gradientColors, gradientAngle, and borderRadius must not be null.
Implementation
const CoderAnimatedGradientContainer({
super.key,
/// The list of colors to use for the animated gradient.
required this.gradientColors,
/// The current rotation angle of the gradient in radians.
///
/// Can be animated to create a rotating effect.
required this.gradientAngle,
/// The corner radius of the container.
required this.borderRadius,
});