InteractiveStyle class

Style set for interactive states.

normal always applies. State styles are overlaid in this order: focused -> hovered -> active -> disabled.

This mirrors common CSS pseudo-class behavior where later styles in the chain take precedence when multiple states are active.

Constructors

InteractiveStyle({Style? normal, Style? hover, Style? focus, Style? active, Style? disabled})
Creates a new interactive style bundle.

Properties

active → Style?
Optional style to apply when the element is active/pressed.
final
disabled → Style?
Optional style to apply when the element is disabled.
final
focus → Style?
Optional style to apply when the element is focused.
final
hashCode → int
The hash code for this object.
no setterinherited
hover → Style?
Optional style to apply when the element is hovered.
final
normal → Style
Base style used when no state is active.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve({bool isFocused = false, bool isHovered = false, bool isActive = false, bool isDisabled = false}) → Style
Resolves the combined style from the current interaction state.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited