MagicStarterNavItem class

Navigation item model for Magic Starter.

Apps register these via MagicStarter.useNavigation to populate the sidebar, drawer, and bottom navigation bar.

Constructors

MagicStarterNavItem({required IconData icon, required String labelKey, required String path, IconData? activeIcon})
const

Properties

activeIcon → IconData?
Active state icon (optional, falls back to icon).
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData
Icon displayed in the navigation.
final
labelKey → String
Translation key for the label (passed through trans()).
final
path → String
Route path to navigate to.
final
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