ChatController constructor

ChatController({
  1. bool reverse = false,
  2. CustomSortCallback? customSortCallback,
  3. AdditionalGroupCondition? additionalGroupCondition,
})

Creates a ChatController.

  • reverse lays out the list in reverse so it starts at the newest message. Defaults to false.
  • customSortCallback orders messages with the same timestamp.
  • additionalGroupCondition adds a condition for grouping messages.

Implementation

ChatController({
  bool reverse = false,
  this._customSortCallback,
  this._additionalGroupCondition,
}) {
  _reverse = reverse;
}