QudsAutoAnimatedOpacity constructor
const
QudsAutoAnimatedOpacity({})
curve
the curve of the transition velocity.
duration
the duration of the transition, initially set to 400 ms
startAnimationAfter
the duration before the initially shown icon to
start transit.
Implementation
const QudsAutoAnimatedOpacity(
{required this.child,
this.initialOpacity = 0,
this.finalOpacity = 1,
this.curve = Curves.fastLinearToSlowEaseIn,
this.duration = const Duration(milliseconds: 400),
this.startAnimationAfter = const Duration(milliseconds: 10),
Key? key})
: assert(initialOpacity >= 0 && initialOpacity <= 1),
assert(finalOpacity >= 0 && finalOpacity <= 1),
super(key: key);