ChatPhoto class final

Describes a chat or user profile photo

Inheritance

Constructors

ChatPhoto({required int id, required int addedDate, Minithumbnail? minithumbnail, required List<PhotoSize> sizes, AnimatedChatPhoto? animation, AnimatedChatPhoto? smallAnimation, ChatPhotoSticker? sticker})
Describes a chat or user profile photo
const
ChatPhoto.fromJson(Map<String, dynamic> json)
Parses a ChatPhoto from TDLib JSON.
factory

Properties

addedDate → int
Point in time (Unix timestamp) when the photo has been added
final
animation → AnimatedChatPhoto?
A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null
final
clientId → int?
Identifier of the TDLib client that sent this object, when known.
no setterinherited
extra → dynamic
"@extra" of the request this object answers; null for updates.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → int
Unique photo identifier
final
minithumbnail → Minithumbnail?
Photo minithumbnail; may be null
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizes → List<PhotoSize>
Available variants of the photo in JPEG format, in different size
final
smallAnimation → AnimatedChatPhoto?
A small (160x160) animated variant of the photo in MPEG4 format; may be null even the big animation is available
final
sticker → ChatPhotoSticker?
Sticker-based version of the chat photo; may be null
final

Methods

copyWith({int? id, int? addedDate, Minithumbnail? minithumbnail()?, List<PhotoSize>? sizes, AnimatedChatPhoto? animation()?, AnimatedChatPhoto? smallAnimation()?, ChatPhotoSticker? sticker()?}) → ChatPhoto
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.