makeBadgeVisible static method

void makeBadgeVisible(
  1. int index,
  2. bool visible
)

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();
}