currentZIndex property
int
get
currentZIndex
Gets the current z-index value.
This is a convenience getter for accessing the observable's value.
Implementation
int get currentZIndex => zIndex.value;
set
currentZIndex
(int value)
Sets the z-index value in a MobX action.
Updates are wrapped in runInAction to ensure proper state management.
Implementation
set currentZIndex(int value) => runInAction(() => zIndex.value = value);