We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My code is like this
class InitChatListUsecase { final IChatRepository repository; InitChatListUsecase({required this.repository}); Future<Result<List<ChatModel>>> call() { return repository.getAllChatList(); } }
The code in the project looks like this
@riverpod class DeleteTodoUseCaseImpl extends _$DeleteTodoUseCaseImpl implements DeleteTodoUseCase { @override Future<void> build(final int id) { final TodosRepository repository = ref.read(todosRepositoryImplProvider.notifier); return repository.deleteTodo(id); } }
I want to know why Usecase is used as “StateNotifier” ?I'm a fresh on Riverpod, hope you can tell me about it
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My code is like this
The code in the project looks like this
I want to know why Usecase is used as “StateNotifier” ?I'm a fresh on Riverpod, hope you can tell me about it
The text was updated successfully, but these errors were encountered: