clearLifecycleHooks static method

void clearLifecycleHooks()

Clears all global lifecycle callbacks.

Useful in tests and during teardown.

Implementation

static void clearLifecycleHooks() {
  onInit = null;
  onDismiss = null;
}