updateProfileImage abstract method
Updates the authenticating user's profile image. Note that this method expects raw multipart data, not a URL to an image.
Parameters
file
: The avatar image for the profile, base64-encoded. Must be a valid GIF, JPG, or PNG image of less than 700 kilobytes in size. Images with width larger than 400 pixels will be scaled down. Animated GIFs will be converted to a static GIF of the first frame, removing the animation.
Endpoint Url
Authentication Methods
- OAuth 1.0a
Reference
Implementation
Future<TwitterResponse<UserData, void>> updateProfileImage({
required File file,
});