Token resolver capability for Dropdown components.
This is a capability contract (ISP): components request this interface
via HeadlessTheme.capability<RDropdownTokenResolver>().
The resolver computes visual tokens based on:
- spec (variant, size)
- trigger widget states (pressed, hovered, focused, disabled)
- overlay phase (affects visual state of trigger)
- platform density / constraints
The component calls this to get resolved tokens, then passes them to the renderer. The renderer never does token resolution.
Non-generic by design: Token resolution doesn't depend on the item value type. Only UI-relevant data (states, spec) is used.
See docs/V1_DECISIONS.md → "Token Resolution Layer".
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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(
{required BuildContext context, required RDropdownButtonSpec spec, required Set< WidgetState> triggerStates, required ROverlayPhase overlayPhase, BoxConstraints? constraints, RenderOverrides? overrides}) → RDropdownResolvedTokens - Resolve visual tokens for the given dropdown state.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited