SuperReaderContext class
Collection of core artifacts used to display a read-only document.
While SuperReaderContext includes an editor, it's expected that clients of a SuperReaderContext do not allow users to alter Document within the editor. Instead, the editor provides access to a Document, a DocumentComposer to display and alter selections, and the ability for code to alter the Document, such as an AI GPT system.
- Inheritance
-
- Object
- DocumentContext
- SuperReaderContext
Constructors
- SuperReaderContext({required Editor editor, required DocumentLayout getDocumentLayout(), required DocumentScroller scroller})
Properties
- composer → DocumentComposer
-
The current selection within the displayed document.
no setterinherited
- document → Document
-
The Document that's currently being displayed.
no setterinherited
- documentLayout → DocumentLayout
-
The document layout that is a visual representation of the document.
no setterinherited
- editor → Editor
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scroller → DocumentScroller
-
The DocumentScroller that provides status and control over SuperReader
scrolling.
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