SoundLoadOptions clone()

Create a deep clone of this SoundLoadOptions.

Source

SoundLoadOptions clone() {
  var options = new SoundLoadOptions();
  var urls = this.alternativeUrls;
  options.mp3 = this.mp3;
  options.mp4 = this.mp4;
  options.ogg = this.ogg;
  options.opus = this.opus;
  options.ac3 = this.ac3;
  options.wav = this.wav;
  options.engine = this.engine;
  options.alternativeUrls = urls == null ? null : urls.toList();
  options.ignoreErrors = this.ignoreErrors;
  options.corsEnabled = this.corsEnabled;
  return options;
}