QudsAnimatedWidgetsFlipper constructor

const QudsAnimatedWidgetsFlipper({
  1. required Widget startChild,
  2. required Widget endChild,
  3. bool showStartChild = true,
  4. bool? withRotation,
  5. Curve curve = Curves.fastLinearToSlowEaseIn,
  6. Duration duration = const Duration(milliseconds: 400),
  7. Key? key,
})

showStartChild if is true the widget will show initially the startChild, if set to false it will show initially the endChild. withRotation indicates weather the icons will transite with rotation. curve the curve of the transition velocity. duration the duration of the transition, initially set to 400 ms

Implementation

const QudsAnimatedWidgetsFlipper(
    {required this.startChild,
    required this.endChild,
    this.showStartChild = true,
    this.withRotation,
    this.curve = Curves.fastLinearToSlowEaseIn,
    this.duration = const Duration(milliseconds: 400),
    Key? key})
    : super(key: key);