file static method

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

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

Implementation

static LottieBuilder file(
  Object file, {
  Animation<double>? controller,
  FrameRate? frameRate,
  bool? animate,
  bool? repeat,
  bool? reverse,
  LottieDelegates? delegates,
  LottieOptions? options,
  LottieImageProviderFactory? imageProviderFactory,
  void Function(LottieComposition)? onLoaded,
  Key? key,
  LottieFrameBuilder? frameBuilder,
  ImageErrorWidgetBuilder? errorBuilder,
  double? width,
  double? height,
  BoxFit? fit,
  AlignmentGeometry? alignment,
  bool? addRepaintBoundary,
  FilterQuality? filterQuality,
  WarningCallback? onWarning,
  LottieDecoder? decoder,
  RenderCache? renderCache,
  bool? backgroundLoading,
}) =>
    LottieBuilder.file(
      file,
      controller: controller,
      frameRate: frameRate,
      animate: animate,
      repeat: repeat,
      reverse: reverse,
      delegates: delegates,
      options: options,
      imageProviderFactory: imageProviderFactory,
      onLoaded: onLoaded,
      key: key,
      frameBuilder: frameBuilder,
      errorBuilder: errorBuilder,
      width: width,
      height: height,
      fit: fit,
      alignment: alignment,
      addRepaintBoundary: addRepaintBoundary,
      filterQuality: filterQuality,
      onWarning: onWarning,
      decoder: decoder,
      renderCache: renderCache,
      backgroundLoading: backgroundLoading,
    );