determineControlItemState method
Determines the current material state of the control item.
Implementation
OudsControlItemState determineControlItemState() {
if (!enabled) return OudsControlItemState.disabled;
if (isReadOnly) return OudsControlItemState.readOnly;
if (isPressed) return OudsControlItemState.pressed;
if (isHovered) return OudsControlItemState.hovered;
return OudsControlItemState.enabled;
}