Book class

Book.

Annotations
  • @immutable
  • @MappableClass(hook: BookHook())

Constructors

Book({required BookTitle title, required int id, required int media, required int favorites, required String? scanlator, required DateTime uploaded, required List<Tag> tags, required BookImages images})
Creates a book.
const

Properties

cover Cover
Book cover.
no setter
favorites int
Book favorites count.
final
hashCode int
The hash code for this object.
no setterinherited
id int
Book ID.
final
images BookImages
Collection of images.
final
media int
Book media gallery ID.
final
pages List<Image>
Book pages.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scanlator String?
Book scanlator.
final
tags List<Tag>
Book tags list.
final
thumbnail CoverThumbnail
Book thumbnail.
no setter
title BookTitle
Book title.
final
uploaded DateTime
Book upload date.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
inherited
toMap() Map<String, dynamic>
inherited
toString() String
Get book pretty title.
override

Operators

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

Static Properties

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