internalSetup method

  1. @override
  2. @internal
  3. @mustCallSuper
void internalSetup(
  1. ProxyRef ref,
  2. BaseProvider<BaseNotifier<ServerState>, ServerState>? provider
)
inherited

Handles the actual initialization of the notifier. Calls init internally.

Implementation

@override
@internal
@mustCallSuper
void internalSetup(
  ProxyRef ref,
  BaseProvider<BaseNotifier<T>, T>? provider,
) {
  super.internalSetup(ref, provider);
  _state = _overrideInitialState ?? init();
  _initialized = true;

  _setupOnChanged(ref.container, provider);
}