setLoop method

Future<void> setLoop(
  1. bool loop
)

Set loop playback.

Implementation

Future<void> setLoop(bool loop) async {
  if (_isNeedDisposed) return;
  await _initPlayer.future;
  await _mc!.invoke<void>('setLoop', {'value': loop});
}