I have the following code to get data from API using Dio:
Dio
_fetchData() async { try { Dio dio = new Dio(); list.clear(); final response = a