taskListProvider top-level property

dynamic taskListProvider
final

Implementation

final taskListProvider =
    FutureProvider.family<List<String>, String?>((ref, spaceId) async {
  final allTaskLists = await ref.watch(allTasksListsProvider.future);
  if (spaceId == null) {
    return allTaskLists.map((e) => e.eventIdStr()).toList();
  } else {
    return allTaskLists
        .where((t) => t.spaceIdStr() == spaceId)
        .map((e) => e.eventIdStr())
        .toList();
  }
});