OudsNavigationBarItemBadge class
Represents an optional badge attached to a navigation item.
Parameters:
- contentDescription : Semantic description for accessibility.
- count : Optional integer to display as badge count.
Example usage:
OudsNavigationBarItemBadge(
contentDescription: 'Unread messages',
count: 5,
);
Constructors
-
Creates a badge for a navigation bar item.
const
Properties
- contentDescription → String
-
Semantic description for accessibility.
final
- count → int?
-
Optional count displayed inside the badge.
final
- hasCount → bool
-
Returns true if the badge has a numeric count.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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