ColorChangingAnimation<T> constructor

const ColorChangingAnimation<T>({
  1. Key? key,
  2. required Duration duration,
  3. required Future<T> onPress(),
  4. required dynamic onAsyncCallFinished(
    1. T
    ),
  5. required Widget buttonChild,
  6. required List<Color> colors,
  7. BorderRadius? buttonRadius,
  8. BoxShadow? buttonShadow,
  9. required double buttonWidth,
  10. required double buttonHeight,
})

Implementation

const ColorChangingAnimation({
  Key? key,
  required this.duration,
  required this.onPress,
  required this.onAsyncCallFinished,
  required this.buttonChild,
  required this.colors,
  this.buttonRadius,
  this.buttonShadow,
  required this.buttonWidth,
  required this.buttonHeight,
}) : super(key: key);