NavigationItem class

One destination of AdaptiveResponsiveScaffold.

Constructors

const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → dynamic
Glyph shown when the destination is not selected, normally a constant from AdaptiveIcons, an IconData, or a Widget.
final
label → String
The destination's label. Localise it at the call site.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedIcon → dynamic
Glyph shown when the destination is selected. Falls back to icon.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveIcon({required bool selected}) → dynamic
The glyph for the given selection state.
toBottomNavItem({required Color activeColor, required Color inactiveColor}) → AdaptiveBottomNavItem
Converts to an item of AdaptiveBottomNav (compact windows).
toDrawerDestination({required Color activeColor, required Color inactiveColor}) → NavigationDrawerDestination
Converts to a NavigationDrawerDestination (expanded windows, Material).
toRailDestination({required Color activeColor, required Color inactiveColor}) → NavigationRailDestination
Converts to a NavigationRailDestination (medium windows, Material).
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited