init method

void init(
  1. CoreState<CoreWidget>? state
)

Initializes holder with given state. args are smoothly transferred between State and Cache based on current Widget lifecycle.

Implementation

void init(CoreState? state) {
  _state = state;
  _valid = true;

  if (_cache != null) {
    argStore.set(_cache);
    _cache = null;
  }
}