messagesRevision property

ValueListenable<int> get messagesRevision

Incremented only when the message list changes. ScrollController calls notifyListeners on every scroll offset change, so the list view should listen to this instead of the controller; otherwise the whole list is rebuilt on every scroll frame.

Implementation

ValueListenable<int> get messagesRevision => _messagesRevision;