AppNavItem enum
Navigation entries visible on the main app screen
This enum contains presentation-related information such as the icons and labels for each root route.
Values
- fleet → const AppNavItem
-
const AppNavItem(AppRootRoute.fleet, icon: Icons.home_filled, selectedIcon: Icons.home_filled) - notifications → const AppNavItem
-
const AppNavItem(AppRootRoute.notifications, icon: Icons.notifications, selectedIcon: Icons.notifications) - profiles → const AppNavItem
-
const AppNavItem(AppRootRoute.profile, icon: Icons.person, selectedIcon: Icons.person)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → IconData
-
final
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- route → AppRootRoute
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIcon → IconData
-
final
Methods
-
getLabel(
BuildContext context) → String - Returns the label for the navigation entry
-
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
Static Methods
-
forRoute(
AppRootRoute route) → AppNavItem
Constants
-
values
→ const List<
AppNavItem> - A constant List of the values in this enum, in order of their declaration.