SvgDrawingAnimation constructor

const SvgDrawingAnimation(
  1. SvgProvider svgProvider, {
  2. Key? key,
  3. Duration? duration,
  4. double? speed,
  5. Curve curve = Curves.linear,
  6. bool repeats = false,
  7. Animation<double>? animation,
  8. LoadingWidgetBuilder loadingWidgetBuilder = defaultLoadingWidgetBuilder,
  9. ErrorWidgetBuilder errorWidgetBuilder = defaultErrorWidgetBuilder,
  10. PenRenderer? penRenderer,
})

Implementation

const SvgDrawingAnimation(this.svgProvider,
    {super.key,
    this.duration,
    this.speed,
    this.curve = Curves.linear,
    this.repeats = false,
    this.animation,
    this.loadingWidgetBuilder = defaultLoadingWidgetBuilder,
    this.errorWidgetBuilder = defaultErrorWidgetBuilder,
    this.penRenderer})
    : assert(!(duration == null && speed == null && animation == null),
          'You must set a duration, speed or animation.'),
      assert(
          animation == null && duration != null && speed == null ||
              animation == null && speed != null && duration == null ||
              animation != null && speed == null && duration == null,
          'Only one of duration or speed can be used at a time.');