ViewModel constructor
Implementation
ViewModel({
Key? key,
required this.builder,
}) : super(key: key) {
attr.view = builder(this);
Future.delayed(const Duration(microseconds: 1), () {
attr.isCreatingState = true;
onCreate();
attr.isCreatingState = false;
});
_subscribeLifeCycleEvent.onCtor();
_periodicLifeCycleEvent.onCtor();
}