clone method Null safety

VideoLoadOptions clone()

Create a deep clone of this VideoLoadOptions.

Implementation

VideoLoadOptions clone() {
  final options = VideoLoadOptions();
  final urls = alternativeUrls;
  options.mp4 = mp4;
  options.webm = webm;
  options.ogg = ogg;
  options.alternativeUrls = urls?.toList();
  options.loadData = loadData;
  options.corsEnabled = corsEnabled;
  return options;
}