Book class sealed
An object which handle the details of a book
- Implemented types
- Available extensions
- Annotations
-
- @freezed
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, String? edition, int? pages, String? dimensions, String? overview, String? image, double? msrp, String? excerpt, String? synopsys, List<
String?> ? authors, List<String> ? subjects, List<String> ? reviews, List<Merchant> ? prices, }) -
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. Can be a year or a full date.
no setterinherited
- deweyDecimal → String?
-
Not documented in the official API
no setterinherited
- dimensions → String?
-
Dimensions of the book
no setterinherited
- edition → String?
-
Details about the edition
no setterinherited
- excerpt → String?
-
Excerpt of the book
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → String?
-
URL of the cover
no setterinherited
- isbn → String
-
ISBN of the book
no setterinherited
- isbn13 → String
-
New 13-digit ISBN
no setterinherited
- language → String?
-
Language of the book
no setterinherited
- msrp → double?
-
Not documented in the official API
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> ? -
List of the subjects of the book
no setterinherited
- synopsys → String?
-
Synopsys of the book
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?> (TResult $default(String title, String? titleLong, String isbn, String isbn13, String? deweyDecimal, String? binding, String? publisher, String? language, DateTime? datePublished, String? edition, int? pages, String? dimensions, String? overview, String? image, double? msrp, String? excerpt, String? synopsys, List< String?> ? authors, List<String> ? subjects, List<String> ? reviews, List<Merchant> ? prices, )?, {required TResult orElse()}) → TResult -
Available on Book, provided by the BookPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
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?> (TResult $default(String title, String? titleLong, String isbn, String isbn13, String? deweyDecimal, String? binding, String? publisher, String? language, DateTime? datePublished, String? edition, int? pages, String? dimensions, String? overview, String? image, double? msrp, String? excerpt, String? synopsys, List< String?> ? authors, List<String> ? subjects, List<String> ? reviews, List<Merchant> ? prices, )) → TResult -
Available on Book, provided by the BookPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String title, String? titleLong, String isbn, String isbn13, String? deweyDecimal, String? binding, String? publisher, String? language, DateTime? datePublished, String? edition, int? pages, String? dimensions, String? overview, String? image, double? msrp, String? excerpt, String? synopsys, List< String?> ? authors, List<String> ? subjects, List<String> ? reviews, List<Merchant> ? prices, )?) → TResult? -
Available on Book, provided by the BookPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited