makeBadgeVisible static method
Use to set the visibility of a badge using its index
.
Implementation
static void makeBadgeVisible(int index, bool visible) {
if (index < 0 || index >= length) return;
_badges[index] = _badges[index].copyWith(showBadge: visible);
_singleton.notify();
}