LottieBuilder.network constructor

LottieBuilder.network(
  1. String src, {
  2. Client? client,
  3. Map<String, String>? headers,
  4. Animation<double>? controller,
  5. FrameRate? frameRate,
  6. bool? animate,
  7. bool? reverse,
  8. bool? repeat,
  9. LottieDelegates? delegates,
  10. LottieOptions? options,
  11. LottieImageProviderFactory? imageProviderFactory,
  12. void onLoaded(
    1. LottieComposition
    )?,
  13. Key? key,
  14. LottieFrameBuilder? frameBuilder,
  15. ImageErrorWidgetBuilder? errorBuilder,
  16. double? width,
  17. double? height,
  18. BoxFit? fit,
  19. AlignmentGeometry? alignment,
  20. bool? addRepaintBoundary,
  21. FilterQuality? filterQuality,
  22. WarningCallback? onWarning,
  23. LottieDecoder? decoder,
  24. RenderCache? renderCache,
  25. bool? backgroundLoading,
})

Creates a widget that displays an LottieComposition obtained from the network.

Implementation

LottieBuilder.network(
  String src, {
  http.Client? client,
  Map<String, String>? headers,
  this.controller,
  this.frameRate,
  this.animate,
  this.reverse,
  this.repeat,
  this.delegates,
  this.options,
  LottieImageProviderFactory? imageProviderFactory,
  this.onLoaded,
  super.key,
  this.frameBuilder,
  this.errorBuilder,
  this.width,
  this.height,
  this.fit,
  this.alignment,
  this.addRepaintBoundary,
  this.filterQuality,
  this.onWarning,
  LottieDecoder? decoder,
  this.renderCache,
  bool? backgroundLoading,
}) : lottie = NetworkLottie(src,
          client: client,
          headers: headers,
          imageProviderFactory: imageProviderFactory,
          decoder: decoder,
          backgroundLoading: backgroundLoading);