UChat constructor
const
UChat({
- required List<
ChatMessage> messages, - required String outgoingUserId,
- Key? key,
- ChatComposer? composer,
- ChatActionButton? actionButton,
- ChatWidgetBuilder? headerBuilder,
- ChatWidgetBuilder? avatarBuilder,
- ChatWidgetBuilder? messageBuilder,
- WidgetBuilder? emptyBuilder,
- void onMessageSent()?,
- Widget? loadingIndicator,
- Widget? errorIndicator,
- bool showLoading = false,
- BoxConstraints? constraints,
- EdgeInsets padding = const EdgeInsets.all(8),
- Color? backgroundColor,
Implementation
const UChat({
required this.messages,
required this.outgoingUserId,
super.key,
this.composer,
this.actionButton,
this.headerBuilder,
this.footerBuilder,
this.avatarBuilder,
this.messageBuilder,
this.emptyBuilder,
this.onMessageSent,
this.loadingIndicator,
this.errorIndicator,
this.showLoading = false,
this.constraints,
this.padding = const EdgeInsets.all(8),
this.backgroundColor,
});