A strategy for turning message text into a rendered representation.
Declared in the core — without a Flutter dependency — so models and contracts
can reference the seam, while UI packages provide the concrete widget-
producing implementation (the default in flutter_ai_elements is a
dependency-free Markdown renderer). Hosts inject a custom TextRenderer to
swap in their own parser or to support dialects such as LaTeX or custom tags.
The type parameter T is the rendered output — a Widget in the UI layer,
or any representation in non-UI contexts (tests, server-side rendering).
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
String text, {required bool isStreaming}) → T -
Renders
textinto aT. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited