ChatView constructor

ChatView({
  1. Key? key,
  2. ChatThemeData? theme,
  3. ChatController? controller,
  4. Widget? toolbar,
})

The constructor for the chat view.

Implementation

ChatView({
  super.key,
  ChatThemeData? theme,
  ChatController? controller,
  this.toolbar,
}) {
  this.theme = theme ??
      ChatThemeData(
        light: ChatColorThemeData(),
        dark: ChatColorThemeData(),
      );
  this.controller = controller ?? ChatController();
}