defaultTrendsListTransform function

Future<List<Trends>> defaultTrendsListTransform(
  1. Response response
)

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,
  );
}