AsyncViewModelImpl<T> constructor

AsyncViewModelImpl<T>(
  1. AsyncState<T> _state, {
  2. bool loadOnInit = true,
})

Implementation

AsyncViewModelImpl(this._state, {this.loadOnInit = true}) : super() {
  if (kFlutterMemoryAllocationsEnabled) {
    ChangeNotifier.maybeDispatchObjectCreation(this);
  }

  if (loadOnInit) {
    _initializeAsync();
  }
}