updateBadge static method
Use to update a badge using its index
, e.g: update the number, text...
If you want to hide badges on a specific index, use makeBadgeVisible
Implementation
static void updateBadge(int index, NavbarBadge badge) {
if (index < 0 || index >= length) return;
_badges[index] = badge;
_singleton.notify();
}