defaultTweetTransform function

Future<Tweet> defaultTweetTransform(
  1. Response response
)

Parses the response into a Tweet object in an isolate.

Implementation

Future<Tweet> defaultTweetTransform(Response response) async {
  return await compute<String, Tweet>(_isolateTweetTransform, response.body);
}