getSound method Null safety

Sound getSound(
  1. String name
)

Implementation

Sound getSound(String name) => _getResourceValue('Sound', name) as Sound;