LottieBuilder.network constructor
LottieBuilder.network(
- String src, {
- Map<
String, String> ? headers, - Animation<
double> ? controller, - FrameRate? frameRate,
- bool? animate,
- bool? reverse,
- bool? repeat,
- LottieDelegates? delegates,
- LottieOptions? options,
- LottieImageProviderFactory? imageProviderFactory,
- void onLoaded()?,
- Key? key,
- LottieFrameBuilder? frameBuilder,
- ImageErrorWidgetBuilder? errorBuilder,
- double? width,
- double? height,
- BoxFit? fit,
- AlignmentGeometry? alignment,
- bool? addRepaintBoundary,
- FilterQuality? filterQuality,
- WarningCallback? onWarning,
Creates a widget that displays an LottieComposition obtained from the network.
Implementation
LottieBuilder.network(
String src, {
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,
}) : lottie = NetworkLottie(src,
headers: headers, imageProviderFactory: imageProviderFactory);