OpacityAnimation constructor
OpacityAnimation({
- Key? key,
- required Duration duration,
- required Duration delay,
- required Widget child,
- required ValueSetter<
AnimationController> ? onComplete, - required double begin,
- required double end,
- 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!,
);
},
);