defaultFriendshipsTransform function

Future<List<Friendship>> defaultFriendshipsTransform(
  1. Response response
)

Parses the response into a list of Friendship objects in an isolate.

Implementation

Future<List<Friendship>> defaultFriendshipsTransform(Response response) async {
  return await compute<String, List<Friendship>>(
    _isolateFriendshipsTransform,
    response.body,
  );
}