Al iniciar la depuración me muestra constantemente el error "type 'Null' is not a subtype of type 'Sound' in type cast" a causa de la línea de código
Sound sound = ModalRoute.of(context)?.settings.arguments as Sound;
en NowPlayingPage y no he conseguido solucionarlo. ¿A qué se debe éste error?