TweetService class

Constructors

TweetService({required AbstractTwitterClient client})
const

Properties

client AbstractTwitterClient
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createFavorite({required String id, bool? includeEntities, bool? includeExtEditControl, String tweetMode = 'extended', TransformResponse<Tweet> transform = defaultTweetTransform}) Future<Tweet>
Favorites (likes) the Tweet specified in the ID parameter as the authenticating user. Returns the favorite Tweet when successful.
destroy({required String id, bool? trimUser, String tweetMode = 'extended', bool? includeExtEditControl, TransformResponse<Tweet> transform = defaultTweetTransform}) Future<Tweet>
Destroys the status specified by the required ID parameter. The authenticating user must be the author of the specified status. Returns the destroyed status if successful.
destroyFavorite({required String id, bool? includeEntities, bool? includeExtEditControl, String tweetMode = 'extended', TransformResponse<Tweet> transform = defaultTweetTransform}) Future<Tweet>
Unfavorites (un-likes) the Tweet specified in the ID parameter as the authenticating user. Returns the un-liked Tweet when successful.
listFavorites({String? userId, String? screenName, int? count, String? sinceId, String? maxId, bool? includeEntities, bool? includeExtEditControl, String tweetMode = 'extended', TransformResponse<List<Tweet>> transform = defaultTweetListTransform}) Future<List<Tweet>>
Returns the 20 most recent Tweets liked by the authenticating or specified user.
lookup({required List<String> id, bool? includeEntities, bool? trimUser, bool? map, bool? includeExtAltText, bool? includeCardUri, bool? includeExtEditControl, String tweetMode = 'extended', TransformResponse<List<Tweet>> transform = defaultTweetListTransform}) Future<List<Tweet>>
Returns fully-hydrated Tweet objects for up to 100 Tweets per request, as specified by comma-separated values passed to the id parameter.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retweet({required String id, bool? trimUser, String tweetMode = 'extended', bool? includeExtEditControl, TransformResponse<Tweet> transform = defaultTweetTransform}) Future<Tweet>
Retweets a tweet. Returns the original Tweet with Retweet details embedded.
retweeters({required String id, int? count, int? cursor, TransformResponse<PaginatedIds> transform = defaultPaginatedIdsTransform}) Future<PaginatedIds>
Returns a collection of up to 100 user IDs belonging to users who have retweeted the Tweet specified by the id parameter.
retweets({required String id, int? count, bool? trimUser, String tweetMode = 'extended', bool? includeExtEditControl, TransformResponse<List<Tweet>> transform = defaultTweetListTransform}) Future<List<Tweet>>
Returns a collection of the 100 most recent retweets of the Tweet specified by the id parameter.
retweetsOfMe({int? count, String? sinceId, String? maxId, bool? trimUser, bool? includeEntities, bool? includeUserEntities, bool? includeExtEditControl, String tweetMode = 'extended', TransformResponse<List<Tweet>> transform = defaultTweetListTransform}) Future<List<Tweet>>
Returns the most recent Tweets authored by the authenticating user that have been retweeted by others. This timeline is a subset of the user's GET statuses / user_timeline.
show({required String id, bool? trimUser, bool? includeMyRetweet, bool? includeEntities, bool? includeExtAltText, bool? includeCardUri, String tweetMode = 'extended', bool? includeExtEditControl, TransformResponse<Tweet> transform = defaultTweetTransform}) Future<Tweet>
Returns a single Tweet, specified by the id parameter. The Tweet's author will also be embedded within the Tweet.
toString() String
A string representation of this object.
inherited
unretweet({required String id, bool? trimUser, bool? includeExtEditControl, String tweetMode = 'extended', TransformResponse<Tweet> transform = defaultTweetTransform}) Future<Tweet>
Untweets a retweeted status. Returns the original Tweet with Retweet details embedded.
update({required String status, String? inReplyToStatusId, bool? autoPopulateReplyMetadata, List<String>? excludeReplyUserId, String? attachmentUrl, List<String>? mediaIds, bool? possiblySensitive, double? lat, double? long, String? placeId, bool? displayCoordinates, bool? trimUser, bool? enableDmcommands, bool? failDmcommands, String? cardUri, bool? includeExtEditControl, String tweetMode = 'extended', TransformResponse<Tweet> transform = defaultTweetTransform}) Future<Tweet>
Updates the authenticating user's current status, also known as Tweeting.

Operators

operator ==(Object other) bool
The equality operator.
inherited