available method

Future<List<TrendLocation>> available({
  1. TransformResponse<List<TrendLocation>> transform = defaultTrendLocationsTransform,
})

Returns the locations that Twitter has trending topic information for.

transform: Can be used to parse the request. By default, the response is parsed in an isolate.

See https://developer.twitter.com/en/docs/twitter-api/v1/trends/locations-with-trending-topics/api-reference/get-trends-available.

Implementation

Future<List<TrendLocation>> available({
  TransformResponse<List<TrendLocation>> transform =
      defaultTrendLocationsTransform,
}) {
  return client
      .get(
        Uri.https('api.twitter.com', '1.1/trends/available.json'),
      )
      .then(transform);
}