NavigationItem class

Defines a common interface for BottomNavigationBar and NavigationRail.

This class maps to both BottomNavigationBarItem and NavigationRailDestination with an icon and label property.

Annotations

Constructors

Creates an abstraction for a navigation item.
const

Properties

bottomNavBar BottomNavigationBarItem
Generates an item for BottomNavigationBar.
no setter
hashCode int
The hash code for this object.
no setterinherited
icon Widget
The icon for this item.
final
label String
The label for this item.
final
Generates an item for NavigationRail.
no setter
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