didUpdate method

  1. @override
  2. @mustCallSuper
void didUpdate(
  1. H oldHook
)
override

Prepare this HookState for a build with new hook.

This will be called before every build, except the first one. oldHook will be the Hook used during the previous build.

Implementation

@override
@mustCallSuper
void didUpdate(H oldHook) {
  super.didUpdate(oldHook);
  if (!hookKeysEquality.equals(hook.keys, oldHook.keys)) didUpdateKeys();
}