GlassDockItem class
One app in a GlassDock.
- Annotations
Constructors
- GlassDockItem.new({required Widget icon, required String label, VoidCallback? onPressed, bool running = false})
-
Creates a dock item.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget
-
Drawn to fill the item's square, such as an app icon.
final
- label → String
-
Shown over the item while it's hovered.
final
- onPressed → VoidCallback?
-
Called when the item is tapped. Null disables it.
final
- running → bool
-
Marks the item with a dot underneath, as a running app.
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