OpacityAnimation constructor

OpacityAnimation({
  1. Key? key,
  2. required Duration duration,
  3. required Duration delay,
  4. required Widget child,
  5. required ValueSetter<AnimationController>? onComplete,
  6. required double begin,
  7. required double end,
  8. required double idleValue,
})

Implementation

OpacityAnimation({
  super.key,
  required super.duration,
  required super.delay,
  required super.child,
  required super.onComplete,
  required double begin,
  required double end,
  required super.idleValue,
}) : super(
        tween: Tween<double>(begin: begin, end: end),
        builder: (context, value, child) {
          return Opacity(
            opacity: value,
            child: child!,
          );
        },
      );