isSelected property
bool
get
isSelected
Gets the current selection state.
Returns true if the node is currently selected.
Implementation
bool get isSelected => selected.value;
set
isSelected
(bool value)
Sets the selection state in a MobX action.
Updates are wrapped in runInAction to ensure proper state management.
Implementation
set isSelected(bool value) => runInAction(() => selected.value = value);