LottieDrawable constructor

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

Implementation

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