implemented backward pagination for chat history with on-scroll prefetching
This commit is contained in:
@@ -11,6 +11,8 @@ abstract class ChatState with _$ChatState {
|
||||
@Default('') String currentToken,
|
||||
GetChatResponse? chatResponse,
|
||||
int? referenceMessageId,
|
||||
@Default(true) bool hasMoreOld,
|
||||
@Default(false) bool isLoadingOlder,
|
||||
}) = _ChatState;
|
||||
|
||||
factory ChatState.fromJson(Map<String, Object?> json) =>
|
||||
|
||||
Reference in New Issue
Block a user