memory static method

Lottie memory(
  1. Uint8List bytes, {
  2. Key? key,
  3. double? width,
  4. double? height,
  5. bool? animate,
  6. bool? repeat,
  7. bool? reverse,
  8. double? renderScale,
  9. void onLoaded(
    1. ThorvgController
    )?,
})

Implementation

static Lottie memory(
  Uint8List bytes, {
  Key? key,
  double? width,
  double? height,
  bool? animate,
  bool? repeat,
  bool? reverse,
  double? renderScale,
  void Function(ThorvgController)? onLoaded,
}) {
  return Lottie(
    key: key,
    data: parseMemory(bytes),
    width: width ?? 0,
    height: height ?? 0,
    animate: animate ?? true,
    repeat: repeat ?? true,
    reverse: reverse ?? false,
    renderScale: renderScale ?? 1.0,
    onLoaded: onLoaded,
  );
}