BottomNavigationBarItem class Null safety

An interactive button within either material's BottomNavigationBar or the iOS themed CupertinoTabBar with an icon and title.

This class is rarely used in isolation. It is typically embedded in one of the bottom navigation widgets above.

See also:

Constructors

BottomNavigationBarItem({required Widget icon, String? label, Widget? activeIcon, Color? backgroundColor, String? tooltip})
Creates an item that is used with BottomNavigationBar.items.
const

Properties

activeIcon Widget
An alternative icon displayed when this bottom navigation item is selected.
final
backgroundColor Color?
The color of the background radial animation for material BottomNavigationBar.
final
hashCode int
The hash code for this object.
read-onlyinherited
icon Widget
The icon of the item.
final
label String?
The text label for this BottomNavigationBarItem.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
tooltip String?
The text to display in the Tooltip for this BottomNavigationBarItem.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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