onLoad method

  1. @override
void onLoad(
  1. String? dataURL,
  2. String type
)
override

Implementation

@override
void onLoad(String? dataURL, String type) {
  var audio = AudioElement();
  audio.controls = true;

  var sourceElement = SourceElement();
  sourceElement.src = dataURL!;
  sourceElement.type = type;

  audio.children.add(sourceElement);

  onLoadAudio.add(audio);
}