onLoaded property
void Function(LottieComposition)?
onLoaded
final
A callback called when the LottieComposition has been loaded.
You can use this callback to set the correct duration on the AnimationController
with composition.duration
Implementation
final void Function(LottieComposition)? onLoaded;