SmartNavItem class

A model class representing a single item in the Smart Navigation Bar.

Constructors

SmartNavItem({required String iconPath, String? label, Widget? screen, Color? activeColor, Color? inactiveColor, double? iconSize, BadgeNavItem? badge})
Creates a SmartNavItem for the Smart Navigation Bar.
const

Properties

activeColor → Color?
The color used when this item is active (selected).
final
badge → BadgeNavItem?
An optional badge to display (e.g., notification count).
final
hashCode → int
The hash code for this object.
no setterinherited
iconPath → String
The path to the icon asset used for this navigation item.
final
iconSize → double?
The size of the icon for this item. If null, the default from SmartNavStyle is used.
final
inactiveColor → Color?
The color used when this item is inactive.
final
label → String?
The label text shown below or beside the icon.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screen → Widget?
The screen (widget) to be displayed when this item is 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