Presentation class

The Presentation Hints extension defines a number of hints for User Agents about the way content should be presented to the user.

https://readium.org/webpub-manifest/extensions/presentation.html https://readium.org/webpub-manifest/schema/extensions/presentation/metadata.schema.json

These properties are nullable to avoid having default values when it doesn't make sense for a given Publication. If a navigator needs a default value when not specified, Presentation.DEFAULT_X and Presentation.X.DEFAULT can be used.

@param clipped Specifies whether or not the parts of a linked resource that flow out of the viewport are clipped. @param continuous Indicates how the progression between resources from the readingOrder should be handled. @param fit Suggested method for constraining a resource inside the viewport. @param orientation Suggested orientation for the device when displaying the linked resource. @param overflow Suggested method for handling overflow while displaying the linked resource. @param spread Indicates the condition to be met for the linked resource to be rendered within a synthetic spread. @param layout Hints how the layout of the resource should be presented (EPUB extension).

Mixed-in types
  • JSONable

Constructors

Presentation({EpubLayout? layout, PresentationOrientation? orientation, PresentationOverflow? overflow, PresentationSpread? spread, PresentationFit? fit, bool? clipped, bool? continuous})
Presentation.fromJson(Map<String, dynamic>? json)
Creates a Properties from its RWPM JSON representation.
factory

Properties

clipped → bool?
final
continuous → bool?
final
fit → PresentationFit?
final
hashCode → int
The hash code for this object.
no setterinherited
layout → EpubLayout?
Hints how the layout of the resource should be presented.
final
orientation → PresentationOrientation?
Suggested orientation for the device when displaying the linked resource.
final
overflow → PresentationOverflow?
Suggested method for handling overflow while displaying the linked resource.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spread → PresentationSpread?
Indicates the condition to be met for the linked resource to be rendered within a synthetic spread.
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

layoutOf(Link link) → EpubLayout
Determines the layout of the given resource in this publication. The default layout is reflowable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes a Presentation to its RWPM JSON representation.
override
toString() → String
A string representation of this object.
override

Operators

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