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