observeDispose function

void observeDispose (
  1. void onDispose(
      )
    )

    Implementation

    void observeDispose(void onDispose()) {
      observeLifecycle(StateLifecyclePhase.dispose, onDispose);
    }