$init method
Implementation
@override
void $init() {
final snapshot = $snapshot();
for (final actor in $actions.whereType<SimpleEffect<T>>()) {
Future(() {
actor.onInitState?.call(this, snapshot);
});
}
}
@override
void $init() {
final snapshot = $snapshot();
for (final actor in $actions.whereType<SimpleEffect<T>>()) {
Future(() {
actor.onInitState?.call(this, snapshot);
});
}
}