PerResourcePositionsService class

Simple PositionsService for a Publication which generates one position per readingOrder resource.

@param fallbackMediaType Media type that will be used as a fallback if the Link doesn't specify any.

Inheritance

Constructors

PerResourcePositionsService({required List<Link> readingOrder, required String fallbackMediaType})

Properties

fallbackMediaType String
final
hashCode int
The hash code for this object.
no setterinherited
Links which will be added to Publication.links. It can be used to expose a web API for the service, through Publication.get.
no setterinherited
readingOrder List<Link>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceType Type
This is the supertype of the service that the subclass is implementing
no setterinherited

Methods

close() → void
Closes any opened file handles, removes temporary files, etc.
inherited
get(Link link) Resource?
A service can return a Resource to:
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
positions() Future<List<Locator>>
Returns the list of all the positions in the publication.
inherited
positionsByReadingOrder() Future<List<List<Locator>>>
Returns the list of all the positions in the publication, grouped by the resource reading order index.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

createFactory({required String fallbackMediaType}) ServiceFactory