recreateBadgeControllerIfClosedForTesting method

  1. @visibleForTesting
void recreateBadgeControllerIfClosedForTesting()

Runs the badge-controller re-init recovery (Issue 56) in isolation so the dispose→re-init contract is unit-testable without the platform-heavy full initialize (FCM + local-notifications channels). Mirrors exactly what initialize does at its top.

Implementation

@visibleForTesting
void recreateBadgeControllerIfClosedForTesting() {
  _recreateBadgeControllerIfClosed();
}