CoverThumbnail class

Cover thumbnail.

Inheritance
Implemented types
Annotations
  • @MappableClass()

Constructors

CoverThumbnail({required Cover parent, required int width, required int height})

Properties

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

Methods

getFullFilename(String filename) String
override
getUrl({API? api, Hosts? hosts}) Uri
Returns image url using hosts settings from api client or provided hosts config.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
inherited
toMap() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

parse CoverThumbnail Function(dynamic value)
Parses CoverThumbnail instance from a given value.
no setter
parseJson CoverThumbnail Function(String json)
Parses JSON string into CoverThumbnail similarly to parse.
no setter
parseJsonList List<CoverThumbnail> Function(String json)
Parses JSON string into List of CoverThumbnail instances similarly to parseList.
no setter
parseList List<CoverThumbnail> Function(dynamic value)
Parses List of CoverThumbnail instances from a given value.
no setter