PhotoSize class

Inheritance

Constructors

PhotoSize({String type, File photo, int width, int height, List<int> progressiveSizes})
Describes an image in JPEG format
PhotoSize.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
height int
height Image height
read / write
photo File
photo Information about the image file
read / write
progressiveSizes List<int>
progressiveSizes Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
type Image type (see https://core.telegram.org/constructor/photoSize)
read / write
width int
width Image width
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() 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
'photoSize'