LottieBuilder.memory constructor

LottieBuilder.memory(
  1. Uint8List bytes, {
  2. Animation<double>? controller,
  3. FrameRate? frameRate,
  4. bool? animate,
  5. bool? reverse,
  6. bool? repeat,
  7. LottieDelegates? delegates,
  8. LottieOptions? options,
  9. LottieImageProviderFactory? imageProviderFactory,
  10. void onLoaded(
    1. LottieComposition
    )?,
  11. ImageErrorWidgetBuilder? errorBuilder,
  12. Key? key,
  13. LottieFrameBuilder? frameBuilder,
  14. double? width,
  15. double? height,
  16. BoxFit? fit,
  17. AlignmentGeometry? alignment,
  18. bool? addRepaintBoundary,
  19. FilterQuality? filterQuality,
  20. WarningCallback? onWarning,
})

Creates a widget that displays an LottieComposition obtained from a Uint8List.

Implementation

LottieBuilder.memory(
  Uint8List bytes, {
  this.controller,
  this.frameRate,
  this.animate,
  this.reverse,
  this.repeat,
  this.delegates,
  this.options,
  LottieImageProviderFactory? imageProviderFactory,
  this.onLoaded,
  this.errorBuilder,
  super.key,
  this.frameBuilder,
  this.width,
  this.height,
  this.fit,
  this.alignment,
  this.addRepaintBoundary,
  this.filterQuality,
  this.onWarning,
}) : lottie = MemoryLottie(bytes, imageProviderFactory: imageProviderFactory);