LottieDrawable constructor
LottieDrawable(
- LottieComposition composition, {
- 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);
}