OudsButtonControlStateDeterminer class
This class used only for icon button. Class that determines the current state of an Ouds button based on its properties.
Constructors
- OudsButtonControlStateDeterminer.new({required bool enabled, bool isHovered = false, bool isPressed = false, bool isLoading = false})
-
Constructor to initialize the button state.
enabled
is required,isHovered
andisPressed
default to false.
Properties
Methods
-
determineControlState(
) → OudsButtonControlState - Method that determines the current state of the button based on its properties. Returns a value from the OudsButtonControlState enum.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited