CoverThumbnail class
Cover thumbnail.
- Inheritance
- Implemented types
- Annotations
-
- @MappableClass()
Constructors
- CoverThumbnail({required Cover parent, required int width, required int height})
Properties
- filename → String
-
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- height → int
-
Image height in pixels.
read-onlyinherited
- id → int
-
Image ID.
finalinherited
- isCover → bool
-
Whether image is a book cover.
read-onlyinherited
- isThumbnail → bool
-
Whether image is thumbnail.
read-onlyinherited
- media → int
-
Associated book media gallery ID.
finalinherited
- parent → Cover
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- thumbnail → CoverThumbnail
-
Image thumbnail.
If called upon thumbnail or cover returns this object.
read-onlyoverride
- type → ImageType
-
Image type (provides format and extension).
finalinherited
- width → int
-
Image width in pixels.
read-onlyinherited
Methods
-
getFullFilename(
String filename) → String -
override
-
getUrl(
{API? api, Hosts? hosts}) → Uri -
Returns image url using hosts settings from
api
client or providedhosts
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.
read-only
- parseJson → CoverThumbnail Function(String json)
-
Parses JSON string into CoverThumbnail similarly to parse.
read-only
-
parseJsonList
→ List<
CoverThumbnail> Function(String json) -
Parses JSON string into List of CoverThumbnail instances similarly to
parseList.
read-only
-
parseList
→ List<
CoverThumbnail> Function(dynamic value) -
Parses List of CoverThumbnail instances from a given value.
read-only