stop method

void stop()

Stops and cancels loading of the current video.

This function should be reserved for rare situations when you know that the user will not be watching additional video in the player. If your intent is to pause the video, you should just call the YoutubePlayerController.pause function. If you want to change the video that the player is playing, you can call one of the queueing functions without calling YoutubePlayerController.stop first.

Implementation

void stop() => invokeJavascript('stop()');