BaseNarrativeModel class abstract
BaseNarrativeModel
Abstract interface representing a sentence to be processed by the NarrativeEngine. Your app-specific sentence model should implement or extend this.
Properties:
- order - Optional ordering for sentence queue sorting
- text - The sentence text content
- instruction - Processing instruction (read, write, ask, etc.)
- waitForUserInput - Whether to pause for user interaction
- phase - Optional phase identifier for navigation control
- choices - List of choice options for interactive sentences
Constructors
Properties
- choices → List
-
List of choice options for interactive sentences.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- instruction → String
-
Processing instruction (e.g., 'read', 'write', 'ask', 'navigate').
no setter
- order → int?
-
Optional order for queue sorting (lower values processed first).
no setter
- phase → String?
-
Optional phase identifier for navigation control.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The text content of the sentence.
no setter
- waitForUserInput → bool
-
Whether to pause and wait for user input after processing.
no setter
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