setLooping method

Future<void> setLooping(
  1. bool looping
)

Sets whether the video should loop.

Implementation

Future<void> setLooping(bool looping) async {
  final id = _playerId;
  if (id == null) return;
  await _platform.setLooping(id, looping);
  value = value.copyWith(isLooping: looping);
}