isSelected property

bool get isSelected

Gets the current selection state.

Implementation

bool get isSelected => selected.value;
set isSelected (bool value)

Sets the selection state in a MobX action.

Implementation

set isSelected(bool value) => runInAction(() => selected.value = value);