addSound method Null safety

void addSound(
  1. String name,
  2. String url,
  3. [SoundLoadOptions? options]
)

Implementation

void addSound(String name, String url, [SoundLoadOptions? options]) {
  final loader = Sound.load(url, options);
  _addResource('Sound', name, url, loader);
}