LottieDrawable constructor

LottieDrawable(
  1. LottieComposition composition, {
  2. LottieDelegates? delegates,
  3. FrameRate? frameRate,
})

Implementation

LottieDrawable(this.composition, {LottieDelegates? delegates, this.frameRate})
    : size = Size(composition.bounds.width.toDouble(),
          composition.bounds.height.toDouble()) {
  this.delegates = delegates;
  _compositionLayer = CompositionLayer(
      this, LayerParser.parse(composition), composition.layers, composition);
}