useLifecycleHook function

void useLifecycleHook(
  1. LifecycleMixin handler
)

Implementation

void useLifecycleHook(LifecycleMixin handler) {
  return use(LifecycleHook(handler));
}