initHook method

  1. @protected
  2. @mustCallSuper
void initHook()

Called once, at the first use of the hook, before build; inherited widgets are depended on in build, which every build calls. When it throws, the state is not kept, nor disposed: the next build creates another.

Implementation

@protected
@mustCallSuper
void initHook() {}