FeedbackContextBuilder class
Formatter that generates clean, token-efficient, AI-readable UI feedback messages.
Strictly conforms to Master Prompt Sections 11, 12, and 13, enriched with platform and screen size context, and dynamically responds to OutputDetailLevel (compact, standard, detailed, forensic).
Constructors
- FeedbackContextBuilder()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
FeedbackTarget target, String comment, {String? platform, Size? screenSize}) → String - Formats a single feedback item.
-
buildAnnotation(
Annotation annotation, {OutputDetailLevel detailLevel = OutputDetailLevel.standard, String? platform, Size? screenSize}) → String -
Formats a single Annotation into clean, structured feedback.
For component placements (drag & drop) and widget feedback, it adapts dynamically
to the chosen
detailLevel. -
buildMultiple(
List< ({String comment, FeedbackTarget target})> items, {String? platform, Size? screenSize}) → String - Formats multiple feedback items sequentially numbered per Section 12.
-
buildMultipleAnnotations(
List< Annotation> annotations, {OutputDetailLevel detailLevel = OutputDetailLevel.standard, String? platform, Size? screenSize}) → String - Formats multiple Annotation items sequentially numbered.
-
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