ChatController constructor
ChatController({
- required int timePellet,
- required List<
MessageModel> initialMessageList, - required ScrollController scrollController,
- MessageWidgetBuilder? messageWidgetBuilder,
Implementation
ChatController(
{required this.timePellet,
required this.initialMessageList,
required this.scrollController,
this.messageWidgetBuilder}) {
for (var message in initialMessageList.reversed) {
inflateMessage(message);
}
}