setLoop method

void setLoop(
  1. bool loop
)

This function indicates whether the video player should continuously play a playlist or if it should stop playing after the last video in the playlist ends.

The default behavior is that playlists do not loop.

Implementation

// ignore: avoid_positional_boolean_parameters
void setLoop(bool loop) => invokeJavascript('setLoop($loop)');