diff --git a/lib/helpers/hooks/chat_scroll.dart b/lib/helpers/hooks/chat_scroll.dart index d8bfae8..9efd3b2 100644 --- a/lib/helpers/hooks/chat_scroll.dart +++ b/lib/helpers/hooks/chat_scroll.dart @@ -15,7 +15,7 @@ final class ChatScroll({ required final ScrollController scrollController, required final Future Function(String id) jumpToId, }) { - static ChatScroll use({ + factory use({ required AsyncValue controllerData, required Future Function() loadOlder, required Future Function() markRead,