BadgeNavItem class
A model class that represents a badge to be shown on a navigation item.
Constructors
-
Creates a BadgeNavItem used to display a notification or label
over a navigation item icon.
const
Properties
- color → Color
-
The background color of the badge. Defaults to Colors.red.
final
- count → int?
-
A numerical value to display inside the badge (e.g., number of notifications).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideWhenZero → bool
-
Whether to hide the badge if count is zero or null.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double
-
The size (diameter) of the badge.
final
- text → String?
-
A custom text to display inside the badge (e.g., "NEW").
final
- textColor → Color
-
The text color inside the badge. Defaults to Colors.white.
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