AgentSuggestion class final
A prompt offered to start or continue a conversation.
- Annotations
Constructors
- AgentSuggestion({required String label, String? prompt, Widget? icon})
-
Creates a suggestion shown as
labelthat fills the composer withprompt, or withlabelwhenpromptis null.const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- icon → Widget?
-
An optional leading icon; it inherits the suggestion's icon style.
final
- label → String
-
The visible label.
final
- prompt → String
-
The text the suggestion puts in the composer.
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
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override