A Page container.
Flips pages, routes PageEvent and KnobAction to the active page.
┌──────────┐ ┌──────────┐
L │ │ L/R │ │ R
╔>│ page 1 │ <═══> │ page 2 │<╗
║ │ │ │ │ ║
║ └──────────┘ └──────────┘ ║
╚═════════════════════════════════╝
Constructors
Properties
- active → Page
-
Currently active page.
read-only - debug → bool
-
Controls debug log messages.
read-only - hashCode → int
-
Get a hash code for this object.…
read-only, inherited - length → int
-
Number of pages in this book.
read-only - name → String
-
read-only
- pageKnobId → int
-
Which knob flips pages on Direction.left and Direction.right.
read-only - pages → List<Page>
-
All of the pages in this book.
read-only - proto → ArdProto
-
The arduino this book communicates with.
read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.…
inherited
Methods
-
add(
Page page) → void -
Adds a page to the end of this book.…
-
log(
msg) → dynamic -
Prints a debug message to the stdout if debug is true.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.…
inherited -
remove(
Page page) → bool -
Removes a page from this book, if it is inserted.
-
toString(
) → String -
Returns a string representation of this object.
-
turn(
[int pages = 1]) → bool -
Changes the active page by
pagesin either direction.