onMount method
Called when the owning node enters a live scene graph.
Implementation
@override
void onMount() {
super.onMount();
// onLoad handles the first mount; later remounts restart here.
if (isLoaded && autoplay) play();
}
Called when the owning node enters a live scene graph.
@override
void onMount() {
super.onMount();
// onLoad handles the first mount; later remounts restart here.
if (isLoaded && autoplay) play();
}