RitoRevisionLayout class final
The page table of one revision.
A chapter-local revision lays out one chapter and counts its pages from zero; a whole-book revision lays out every chapter and its pages are book pages. A spread is addressed by its position in spreads.
Constructors
-
RitoRevisionLayout({required int pageCount, required List<
RitoSpreadPages> spreads, required List<RitoChapterPages> chapters, required List<RitoTocTargetPage> tocTargets, required List<int?> activeTocEntryByPage, required bool complete}) -
const
Properties
-
activeTocEntryByPage
→ List<
int?> -
Per page, the
tocIdof the entry it reads under: the last entry whose target sits at or before it.final -
chapters
→ List<
RitoChapterPages> -
The chapters the revision lays out, in spine order.
final
- complete → bool
-
Whether the table holds every page of its chapters. One that does
not holds their first pages, numbered and spread as all of them are;
a TOC entry whose target lies past them is not placed yet.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- pageCount → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
spreads
→ List<
RitoSpreadPages> -
Every spread's pages, in reading order.
final
-
tocTargets
→ List<
RitoTocTargetPage> -
The TOC entries the revision places on a page, in TOC order.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited