MyFlipRotateTimer constructor

const MyFlipRotateTimer({
  1. Key? key,
  2. DisplayMode displayMode = DisplayMode.countdown,
  3. Duration initialDuration = const Duration(seconds: 60),
  4. AnimationMode animationMode = AnimationMode.flip,
  5. TextStyle digitTextStyle = const TextStyle(fontSize: 40, fontWeight: FontWeight.bold, color: Colors.white),
  6. double cardWidth = 40,
  7. double cardHeight = 60,
  8. Duration digitAnimDuration = const Duration(milliseconds: 600),
  9. VoidCallback? onComplete,
  10. ValueChanged<TimeFlipEvent>? onSecondFlip,
  11. ValueChanged<TimeFlipEvent>? onMinuteFlip,
  12. ValueChanged<TimeFlipEvent>? onHourFlip,
  13. ValueChanged<TimeFlipEvent>? onAmPmFlip,
  14. TimeFlipEvent? customTime,
  15. BoxDecoration? cardDecoration,
})

Implementation

const MyFlipRotateTimer({
  super.key,
  this.displayMode = DisplayMode.countdown,
  this.initialDuration = const Duration(seconds: 60),
  this.animationMode = AnimationMode.flip,
  this.digitTextStyle = const TextStyle(
    fontSize: 40,
    fontWeight: FontWeight.bold,
    color: Colors.white,
  ),
  this.cardWidth = 40,
  this.cardHeight = 60,
  this.digitAnimDuration = const Duration(milliseconds: 600),
  this.onComplete,
  this.onSecondFlip,
  this.onMinuteFlip,
  this.onHourFlip,
  this.onAmPmFlip,
  this.customTime,
  this.cardDecoration,
});