BeuiDockItem class

One entry in a BeuiDock — an action, or a BeuiDockItem.separator.

Carries the glyph and an optional onTap / active state. The dock owns the gliding active pill (and, when enabled, magnification); an item only describes itself.

The source exports the separator as its own component (DockSeparator), but a dock is driven here by a list of items rather than by children, so the port folds it into this model as a named constructor. That keeps BeuiDock's item list homogeneous (List of non-nullable BeuiDockItem) and keeps the grouping visible at the call site.

Constructors

BeuiDockItem({IconData? icon, Widget? child, VoidCallback? onTap, bool active = false, String? tooltip})
Creates a dock item.
const
BeuiDockItem.separator()
A thin vertical rule that groups the actions on either side of it — the port of the source's DockSeparator (mx-1 h-6 w-px self-center bg-border), and what makes the "macOS-style dock with grouped actions" arrangement expressible.
const

Properties

active bool
Whether the gliding active pill sits behind this item.
final
child Widget?
Custom content, used instead of icon when set.
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
Glyph for the item (framework-native — pick any IconData).
final
isSeparator bool
Whether this entry is a decorative rule rather than an action — true only for BeuiDockItem.separator. See that constructor for what the dock skips.
final
onTap VoidCallback?
Tap handler. When non-null the item is focusable/pressable.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tooltip String?
Accessible label / semantics for the item.
final

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