Await doesn't work if async is not defined in Audio Query package

149 Views Asked by At

So I wanted to use audio query to list out the songs in flutter, According to their documentation

List<SongInfo> songs = await audioQuery.getSongs();

is the way to do the job,

But await can't work without async being defined. Can any solve this?

0

There are 0 best solutions below