core/lifecycle/close_notifier library
Mixins
- CloseNotifier
-
Lets the lifecycle OWNER (core) react when a model built by a separate
engine package closes. The package constructs the model; core registers a
reset callback via addCloseListener; the concrete model fires the
listeners from its own
close()'sfinally. Best practice: the enginecreateModel(spec, config)contract stays a pure factory — no lifecycle callback leaks into the contract that third-party engines implement.