ExpressiveNavItem class

A named navigation destination with an icon and an optional badge.

Annotations

Constructors

ExpressiveNavItem(IconData icon, String label, {Key? key, IconData? selectedIcon, Widget? badge, bool enabled = true, ExpressiveComponentThemeData? style})
A destination showing icon and labelled label.
const
ExpressiveNavItem.fromTab(NavTab tab, {Widget? badge, bool enabled = true, ExpressiveComponentThemeData? style})
The design kit's tab as a navigation item: its glyph, label, selected glyph and key.

Properties

badge → Widget?
A badge on the glyph's top end corner: an ExpressiveBadge.
final
enabled → bool
Whether the item can be selected.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData
The glyph: one of ExpressiveSymbols, which fills when selected.
final
key → Key?
The key for the destination's interactive area.
final
label → String
The label under (or beside) the glyph.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedIcon → IconData?
The glyph while selected; null fills icon instead.
final
style → ExpressiveComponentThemeData?
Stateful visual overrides for this destination.
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