ChatController constructor

ChatController({
  1. required int timePellet,
  2. required List<MessageModel> initialMessageList,
  3. required ScrollController scrollController,
  4. MessageWidgetBuilder? messageWidgetBuilder,
})

Implementation

ChatController(
    {required this.timePellet,
    required this.initialMessageList,
    required this.scrollController,
    this.messageWidgetBuilder}) {
  for (var message in initialMessageList.reversed) {
    inflateMessage(message);
  }
}