Manifest class
Holds the metadata of a Readium publication, as described in the Readium Web Publication Manifest.
Constructors
Properties
-
context
→ List<
String> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
links
↔ List<
Link> -
getter/setter pair
- metadata → Metadata
-
final
-
props
→ List<
Object> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
-
readingOrder
→ List<
Link> -
final
-
resources
→ List<
Link> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited -
subcollections
→ Map<
String, List< PublicationCollection> > -
final
-
tableOfContents
→ List<
Link> -
final
Methods
-
copy(
{List< String> ? context, Metadata? metadata, List<Link> ? links, List<Link> ? readingOrder, List<Link> ? resources, List<Link> ? tableOfContents, Map<String, List< ? subcollections}) → ManifestPublicationCollection> > -
linksWithRel(
String rel) → List< Link> -
Finds all Links having the given
rel
in the manifest's links. -
linkWithRel(
String rel) → Link? - Finds the first Link with the given relation in the manifest's links.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes a Publication to its RWPM JSON representation.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> ? json, {bool packaged = false}) → Manifest? - Parses a Publication from its RWPM JSON representation.
-
normalizeHref(
String baseUrl) → LinkHrefNormalizer