AnimatedGradient constructor

AnimatedGradient({
  1. Key? key,
  2. required List<Color> colors,
  3. Widget? child,
})

Implementation

AnimatedGradient({Key? key, required this.colors, this.child}) : super(key: key){
  if(colors.length < 2){
    throw Exception("length needs to be at least 2");
  }
}