CometChatFormBubble class

A widget for displaying a chat form bubble for category MessageCategoryConstants.interactive and type MessageTypeConstants.form .

This widget can be used to display a chat form bubble in a CometChat conversation. It provides various customization options for the appearance and behavior of the form.

Inheritance

Constructors

CometChatFormBubble({Key? key, String? title, FormBubbleStyle? formBubbleStyle, required FormMessage formMessage, CometChatTheme? theme, dynamic onSubmitTap(Map<String, dynamic>)?, User? loggedInUser, QuickViewStyle? quickViewStyle})
const

Properties

formBubbleStyle FormBubbleStyle?
The formBubbleStyle property allows you to customize the style of the form bubble.
final
formMessage FormMessage
The formMessage is a required parameter that contains the message to be displayed in the form bubble.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loggedInUser User?
The loggedInUser property represents the currently logged-in user.
final
onSubmitTap → dynamic Function(Map<String, dynamic>)?
The onSubmitTap property is a callback function that is called when the user submits the form. It receives a map of form data as an argument.
final
quickViewStyle QuickViewStyle?
The quickViewStyle property represents the currently logged-in user.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme CometChatTheme?
The theme property allows to apply a custom CometChat theme to the form bubble.
final
title String?
The title is an optional title for the form.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<CometChatFormBubble>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited