Image class

Image.

Implementers
Annotations

Constructors

Image({required int id, required int media, required ImageType type, int? width, int? height})
const

Properties

filename String
read-only
hashCode int
The hash code for this object.
read-onlyinherited
height int?
Image height in pixels.
final
id int
Image ID.
final
isCover bool
Whether image is a book cover.
read-only
isThumbnail bool
Whether image is thumbnail.
read-only
media int
Associated book media gallery ID.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
thumbnail ImageThumbnail
Image thumbnail. If called upon thumbnail or cover returns this object.
read-only
type ImageType
Image type (provides format and extension).
final
width int?
Image width in pixels.
final

Methods

getFullFilename(String filename) String
getUrl({API? api, Hosts? hosts}) Uri
Returns image url using hosts settings from api client or provided hosts config.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
inherited
toMap() Map<String, dynamic>
inherited
toString() String
Returns image description that is associated book media and image filename.
override

Operators

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

Static Properties

parse Image Function(dynamic value)
Parses Image instance from a given value.
read-only
parseJson Image Function(String json)
Parses JSON string into Image similarly to parse.
read-only
parseJsonList List<Image> Function(String json)
Parses JSON string into List of Image instances similarly to parseList.
read-only
parseList List<Image> Function(dynamic value)
Parses List of Image instances from a given value.
read-only