available method
Future<List<TrendLocation> >
available({
- TransformResponse<
List< transform = defaultTrendLocationsTransform,TrendLocation> >
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.
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);
}