CoderAnimatedGradientContainer constructor

const CoderAnimatedGradientContainer({
  1. Key? key,
  2. required List<Color> gradientColors,
  3. required double gradientAngle,
  4. 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,
});