defaultTrendsListTransform function
Parses the response
into a list of Trends objects in an isolate.
Implementation
Future<List<Trends>> defaultTrendsListTransform(Response response) async {
return await compute<String, List<Trends>>(
_isolateTrendsListTransform,
response.body,
);
}