selectedElement function
Implementation
@Riverpod(dependencies: [selection, SelectedElementNotifier])
Selection? selectedElement(Ref ref) {
final selected = ref.watch(selectedElementNotifierProvider);
if (selected == null) return null;
return ref.watch(selectionProvider(selected));
}