LiquidSidebarItem class

Item descriptor inside a LiquidSidebarSection of MacOSSidebarNavigation.

Constructors

LiquidSidebarItem({required String id, required String title, required IconData icon, IconData? selectedIcon, VoidCallback? onTap, bool selectsOnTap = true, Widget? trailing})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → IconData
Default icon when unselected.
final
id → String
Unique destination or action identifier.
final
onTap → VoidCallback?
Optional per-item tap handler (useful for modal/action rows like Folders). When non-null, tapping invokes onTap in addition to/instead of selection depending on selectsOnTap.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedIcon → IconData?
Optional filled/active icon when selected.
final
selectsOnTap → bool
Whether tapping also notifies onItemSelected(item.id).
final
title → String
Display title shown in the sidebar row.
final
trailing → Widget?
Optional badge/trailing widget on the right of the row.
final

Methods

iconForSelection({required bool isSelected}) → IconData
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