initHook method

  1. @override
void initHook()
override

Equivalent of State.initState for HookState.

Implementation

@override
void initHook() {
  WidgetsBinding.instance.addObserver(this);

  hook.handler.beforeFirstRender();
  WidgetsBinding.instance.addPostFrameCallback((_) {
    hook.handler.onFirstRender();
  });
}