setLoopMode method
Sets the LoopMode. Looping will be gapless on Android, iOS and macOS. On web, there will be a slight gap at the loop point.
Implementation
Future<void> setLoopMode(LoopMode mode) async {
if (_disposed) return;
_loopModeSubject.add(mode);
await (await _platform).setLoopMode(
SetLoopModeRequest(loopMode: LoopModeMessage.values[mode.index]));
}