Cover class
Cover.
- Inheritance
- Implementers
- Annotations
-
- @MappableClass(hook: CoverHook())
Constructors
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
- 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 → Cover Function(dynamic value)
-
Parses Cover instance from a given value.
read-only
- parseJson → Cover Function(String json)
-
Parses JSON string into Cover similarly to parse.
read-only
-
parseJsonList
→ List<
Cover> Function(String json) -
Parses JSON string into List of Cover instances similarly to
parseList.
read-only
-
parseList
→ List<
Cover> Function(dynamic value) -
Parses List of Cover instances from a given value.
read-only