onLoaded property
This function is called after the animation was sucsessfully loaded.
duration
returns the duration of the emoji animation.
This can be used to set the duration of a animation controller.
onLoaded: (duration) {
// Get the duration of the animation.
controller.duration = duration;
},
Implementation
final void Function(Duration duration)? onLoaded;