onMount method

  1. @override
void onMount()
override

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();
}