DestinationModel class
A model representing a single navigation destination, used in a navigation bar.
Constructors
- DestinationModel({required String label, Widget? icon, Widget? selectedIcon, String? tooltip, Badge? badge})
- Creates a new DestinationModel.
Properties
- badge → Badge?
-
A badge to be displayed on top of the icon or selectedIcon.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
The icon to be displayed for this destination.
final
- label → String
-
The label to be displayed for this destination.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedIcon → Widget?
-
The icon to be displayed for this destination when it is selected.
final
- tooltip → String?
-
The tooltip to be displayed for this destination.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
- Converts this DestinationModel to a NavigationDestination used in a BottomNavigationBar.
- Converts this DestinationModel to a NavigationRailDestination used in a NavigationRail.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited