selectedElement function
Implementation
Selection? selectedElement(Ref ref) {
final selected = ref.watch(selectedElementNotifierProvider);
if (selected == null) return null;
return ref.watch(selectionProvider(selected));
}
Selection? selectedElement(Ref ref) {
final selected = ref.watch(selectedElementNotifierProvider);
if (selected == null) return null;
return ref.watch(selectionProvider(selected));
}