selectedElement function

Selection? selectedElement(
  1. Ref ref
)

Implementation

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

  return ref.watch(selectionProvider(selected));
}