OudsNavigationBarItemBadge class
An optional badge attached to a navigation item.
contentDescription is the semantic text announced by screen readers. count is the optional numeric value displayed inside the badge.
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