lazyState<T extends ReactterState> method
It is used to load a ReactterState lazily and attach it to a specific instance.
Implementation
T lazyState<T extends ReactterState>(T stateFn(), Object instance) {
final zone = ReactterZone();
try {
return stateFn();
} finally {
zone.attachInstance(instance);
}
}