PlainTextSceneRenderer class
Compact indented form for agent prompts. Markers: * tappable, > typeable,
<> scrollable, - static. Runs of foldThreshold+ siblings with the same
structure render as the first item in full plus one digest line naming the
rest, so a 40-row list costs a few lines, not a few hundred.
- Inheritance
-
- Object
- SceneRenderer
- PlainTextSceneRenderer
Constructors
- PlainTextSceneRenderer({int indent = 2, int foldThreshold = 4})
-
const
Properties
- foldThreshold → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indent → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
SemanticScene scene) → String -
override
-
renderDetailed(
SemanticScene scene, {int? maxDepth, bool fold = true}) → RenderResult -
Full render with fold bookkeeping.
foldoff = every sibling in full. -
renderSubtree(
SemanticNode node, {int? maxDepth, bool fold = false}) → String -
One subtree only — no overlays, no route stack, no folding (an explicit
drill-down means "show me").
maxDepthcounts fromnode(0 = its line). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultMaxDepth → const int
- Maximum nesting depth before content is suppressed (keeps scenes compact).