keys property
A list of objects that specify if a HookState should be reused or a new one should be created.
When a new Hook is created, the framework checks if keys matches using Hook.shouldPreserveState. If they don't, the previously created HookState is disposed, and a new one is created using Hook.createState, followed by HookState.initHook.
Implementation
final List<Object?>? keys;