QudsAutoAnimatedOpacity constructor

const QudsAutoAnimatedOpacity({
  1. required Widget child,
  2. double initialOpacity = 0,
  3. double finalOpacity = 1,
  4. Curve curve = Curves.fastLinearToSlowEaseIn,
  5. Duration duration = const Duration(milliseconds: 400),
  6. Duration startAnimationAfter = const Duration(milliseconds: 10),
  7. Key? key,
})

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);