AsyncViewModelImpl<T> constructor
AsyncViewModelImpl<T> (
- AsyncState<
T> _state, { - bool loadOnInit = true,
Implementation
AsyncViewModelImpl(this._state, {this.loadOnInit = true}) : super() {
if (kFlutterMemoryAllocationsEnabled) {
ChangeNotifier.maybeDispatchObjectCreation(this);
}
if (loadOnInit) {
_initializeAsync();
}
}