ChatButton class
A single tappable button in a chat message.
Constructors
- ChatButton({required String label, String? subtitle, ChatButtonStyle style = ChatButtonStyle.outlined, IconData? icon, String? imageUrl})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData?
-
Optional leading icon.
final
- imageUrl → String?
-
Optional small image (e.g. product thumbnail) shown in the button.
final
- label → String
-
Primary label text shown on the button.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → ChatButtonStyle
-
Visual style of the button.
final
- subtitle → String?
-
Optional secondary text (e.g. price, description) shown below the label.
final
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