Book class sealed
An object which handle the details of a book
- Implemented types
- Available extensions
- Annotations
-
- @Freezed.new(when: FreezedWhenOptions.none)
Constructors
-
Book({required String title, @JsonKey.new(name: 'title_long') String? titleLong, required String isbn, required String isbn13, @JsonKey.new(name: 'dewey_decimal') String? deweyDecimal, String? binding, String? publisher, String? language, @JsonKey.new(name: 'date_published') DateTime? datePublished, @Deprecated('Use editionNumber instead.') String? edition, @JsonKey.new(name: 'edition_number') int? editionNumber, int? pages, String? dimensions, String? overview, String? image, @Deprecated('Use listPrice instead.') double? msrp, @JsonKey.new(name: 'list_price') ListPrice? listPrice, @Deprecated('Deprecated by ISBNdb without a replacement.') String? excerpt, String? synopsys, @JsonKey.new(readValue: _readBookAuthors) List<
String?> ? authors, @Deprecated('Use thema instead.') @JsonKey.new(readValue: _readBookSubjects) List<String> ? subjects, @JsonKey.new(readValue: _readBookReviews) List<String> ? reviews, List<Merchant> ? prices, List<ThemaEntry> ? thema}) -
factory
-
Book.fromJson(Map<
String, dynamic> json) -
Used to build the object from the response of the ISBNdb API
factory
Properties
-
List of the authors of the book
no setterinherited
- binding → String?
-
Not documented in the official API
no setterinherited
-
copyWith
→ $BookCopyWith<
Book> -
Create a copy of Book
with the given fields replaced by the non-null parameter values.
no setterinherited
- datePublished → DateTime?
-
Date when the book was published.
no setterinherited
- deweyDecimal → String?
-
Not documented in the official API
no setterinherited
- dimensions → String?
-
Dimensions of the book
no setterinherited
- edition → String?
-
Edition of the book as a string.
no setterinherited
- editionNumber → int?
-
Numeric edition of the book.
no setterinherited
- excerpt → String?
-
Excerpt of the book. Deprecated by ISBNdb without a replacement.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → String?
-
URL of the cover, up to 450 pixels high. May be a placeholder.
no setterinherited
- isbn → String
-
ISBN of the book
no setterinherited
- isbn13 → String
-
New 13-digit ISBN
no setterinherited
- language → String?
-
Language of the book
ISO 639-3 language code or regional tag (pt-br, fr-ca, zh-tw, es-419).
no setterinherited
- listPrice → ListPrice?
-
List price of the book with its currency.
no setterinherited
- msrp → double?
-
Manufacturer's suggested retail price in USD.
no setterinherited
- overview → String?
-
Not documented in the official API
no setterinherited
- pages → int?
-
Number of pages of the book
no setterinherited
-
prices
→ List<
Merchant> ? -
List of the merchants selling this book with real-time prices
no setterinherited
- publisher → String?
-
The name of the publisher
no setterinherited
-
Not documented in the official API
no setterinherited
-
reviews
→ List<
String> ? -
Not documented in the official API
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subjects
→ List<
String> ? -
Legacy subjects, scheduled for removal by ISBNdb. Use
themainstead.no setterinherited - synopsys → String?
-
Synopsys of the book
no setterinherited
-
thema
→ List<
ThemaEntry> ? -
Thema subjects and qualifiers; the main subject is first, when present.
no setterinherited
- title → String
-
Title of the book
no setterinherited
- titleLong → String?
-
Long version of the title
no setterinherited
Methods
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
map<
TResult extends Object?> (TResult $default(_Book value)) → TResult -
Available on Book, provided by the BookPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_Book value)?) → TResult? -
Available on Book, provided by the BookPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_Book value)?, {required TResult orElse()}) → TResult -
Available on Book, provided by the BookPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (BookFieldsCallback< TResult> ? callback, {required TResult orElse()}) → TResult -
Invoke the original callback when supplied, otherwise use
orElse. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this Book to a JSON map.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
-
when<
TResult extends Object?> (BookFieldsCallback< TResult> callback) → TResult -
Destructure the original fields; access
themadirectly on the book. -
whenOrNull<
TResult extends Object?> (BookFieldsCallback< TResult?> ? callback) → TResult? - Invoke the original callback when supplied, otherwise return null.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited