UChat constructor

const UChat({
  1. required List<ChatMessage> messages,
  2. required String outgoingUserId,
  3. Key? key,
  4. ChatComposer? composer,
  5. ChatActionButton? actionButton,
  6. ChatWidgetBuilder? headerBuilder,
  7. ChatWidgetBuilder? footerBuilder,
  8. ChatWidgetBuilder? avatarBuilder,
  9. ChatWidgetBuilder? messageBuilder,
  10. WidgetBuilder? emptyBuilder,
  11. void onMessageSent(
    1. String
    )?,
  12. Widget? loadingIndicator,
  13. Widget? errorIndicator,
  14. bool showLoading = false,
  15. BoxConstraints? constraints,
  16. EdgeInsets padding = const EdgeInsets.all(8),
  17. 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,
});