ZdsNavItem class

Defines a button for ZdsBottomTabBar or ZdsVerticalNav. Used in ZdsBottomTabBar.items.

Constructors

ZdsNavItem({required String label, required Widget icon, String? semanticLabel, String semanticState = '', String? id})
Creates a button to be used in ZdsBottomTabBar
const

Properties

hashCode int
The hash code for this object.
no setterinherited
icon Widget
The icon that will be shown above this item's label. Usually an Icon or IconWithBadge.
final
id String?
used for automation purpose
final
label String
The label that will appear below the icon for this item.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
Semantic label to wrap the item.
final
semanticState String
Semantic label for state of the item e.g. Selected.
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