Skip to content

Commit

Permalink
update(ChatScrollObserver): comment about refItemIndex and refItemInd…
Browse files Browse the repository at this point in the history
…exAfterUpdate
  • Loading branch information
LinXunFeng committed May 19, 2024
1 parent 0d6d237 commit 15b316f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/utils/src/chat/chat_scroll_observer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ class ChatScrollObserver {
/// [refItemRelativeIndex] parameter and [refItemRelativeIndexAfterUpdate]
/// parameter are only used when the mode is
/// [ChatScrollObserverHandleMode.specified].
/// Usage: When you insert a new message, assign [refItemRelativeIndex] to the
/// index of the reference message (latest message) before insertion, and
/// assign [refItemRelativeIndexAfterUpdate] to the index of the reference
/// message after insertion, they refer to the index of the same message.
/// Usage: When you insert a new message, assign the index of the reference
/// message before insertion to [refItemIndex], and assign the index of the
/// reference message after insertion to [refItemIndexAfterUpdate].
/// Note that they should refer to the index of the same message.
standby({
BuildContext? sliverContext,
bool isRemove = false,
Expand Down

0 comments on commit 15b316f

Please sign in to comment.