RDropdownButtonSlots class final
Dropdown slots for partial customization (Replace/Decorate pattern).
Allows overriding specific visual parts without reimplementing the entire renderer.
Slot policy (v1):
- Prefer
Decorate/Enhanceto preserve default structure/semantics. Replaceis a full takeover and must preserve essential behavior (e.g. item tap should still call commands, menu close contract must still be respected by the renderer).
See docs/V1_DECISIONS.md → "4) Renderer contracts + Slots override".
- Annotations
Constructors
-
RDropdownButtonSlots({SlotOverride<
RDropdownAnchorContext> ? anchor, SlotOverride<RDropdownChevronContext> ? chevron, SlotOverride<RDropdownItemContext> ? item, SlotOverride<RDropdownItemContentContext> ? itemContent, SlotOverride<RDropdownMenuContext> ? emptyState}) -
const
Properties
-
anchor
→ SlotOverride<
RDropdownAnchorContext> ? -
Override for the trigger button.
final
-
chevron
→ SlotOverride<
RDropdownChevronContext> ? -
Override for the chevron icon inside the trigger.
final
-
emptyState
→ SlotOverride<
RDropdownMenuContext> ? -
Override for empty state when the item list is empty.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
item
→ SlotOverride<
RDropdownItemContext> ? -
Override for individual items.
final
-
itemContent
→ SlotOverride<
RDropdownItemContentContext> ? -
Override for item content inside the menu item.
final
-
Override for the menu (list of items).
final
-
Override for the menu surface (background/container).
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited