Future<void> mediaPlayerEnableRepeat(int index, bool enable) async { if (_mediaPlayers[index] == null) { return; } return _mediaPlayers[index].instance.enableRepeat(enable); }