ChatPhoto class
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) -
Parse from a json
factory
Properties
- addedDate → int
-
addedDate Point in time (Unix timestamp) when the photo has been added
final
- animation → AnimatedChatPhoto?
-
animation A big (up to 1280x1280) animated variant of the photo in MPEG4 format; may be null
final
- clientId → int?
-
client identifier
no setterinherited
- extra → dynamic
-
callback sign
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
id Unique photo identifier
final
- minithumbnail → Minithumbnail?
-
minithumbnail Photo minithumbnail; may be null
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sizes
→ List<
PhotoSize> -
sizes Available variants of the photo in JPEG format, in different size
final
- smallAnimation → AnimatedChatPhoto?
-
smallAnimation A small (160x160) animated variant of the photo in MPEG4 format; may be null even the big animation is available
final
- sticker → ChatPhotoSticker?
-
sticker 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 -
getConstructor(
) → String -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String