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 and isPressed default to false.

Properties

enabled bool
final
hashCode int
The hash code for this object.
no setterinherited
isHovered bool
final
isLoading bool
final
isPressed bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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