Chat constructor

const Chat({
  1. Key? key,
  2. required YaloChatClient client,
  3. bool showAttachmentButton = true,
  4. PreferredSizeWidget? appBar,
  5. VoidCallback? onShopPressed,
  6. VoidCallback? onCartPressed,
  7. ChatTheme theme = const ChatTheme(),
})

Implementation

const Chat({
  super.key,
  required this.client,
  this.showAttachmentButton = true,
  this.appBar,
  this.onShopPressed,
  this.onCartPressed,
  this.theme = const ChatTheme(),
});