ElapsedTimer constructor

const ElapsedTimer({
  1. required double width,
  2. required double height,
  3. required int duration,
  4. required Color fillColor,
  5. required Color ringColor,
  6. Color? backgroundColor,
  7. Gradient? fillGradient,
  8. Gradient? ringGradient,
  9. Gradient? backgroundGradient,
  10. int initialDuration = 0,
  11. bool isReverse = false,
  12. bool isReverseAnimation = false,
  13. VoidCallback? onComplete,
  14. VoidCallback? onStart,
  15. double strokeWidth = 5.0,
  16. StrokeCap strokeCap = StrokeCap.butt,
  17. TextStyle? textStyle,
  18. Key? key,
  19. bool isTimerTextShown = true,
  20. bool autoStart = true,
  21. String? textFormat,
  22. ElapsedController? controller,
})

Implementation

const ElapsedTimer(
    {required this.width,
    required this.height,
    required this.duration,
    required this.fillColor,
    required this.ringColor,
    this.backgroundColor,
    this.fillGradient,
    this.ringGradient,
    this.backgroundGradient,
    this.initialDuration = 0,
    this.isReverse = false,
    this.isReverseAnimation = false,
    this.onComplete,
    this.onStart,
    this.strokeWidth = 5.0,
    this.strokeCap = StrokeCap.butt,
    this.textStyle,
    this.key,
    this.isTimerTextShown = true,
    this.autoStart = true,
    this.textFormat,
    this.controller})
    : assert(initialDuration <= duration),
      super(key: key);