selectedRequestModelProvider

This commit is contained in:
Ashita Prasad
2024-02-08 02:50:06 +05:30
parent 8584a58db9
commit cb7f93fa98
9 changed files with 30 additions and 30 deletions

View File

@ -9,7 +9,7 @@ import 'package:http/http.dart' as http;
final activeIdStateProvider = StateProvider<String?>((ref) => null);
final activeRequestModelProvider = StateProvider<RequestModel?>((ref) {
final selectedRequestModelProvider = StateProvider<RequestModel?>((ref) {
final activeId = ref.watch(activeIdStateProvider);
final collection = ref.watch(collectionStateNotifierProvider);
if (activeId == null || collection == null) {