wrap
Wraps a StateContainer with observer capability.
Return
An ObservableStateContainer that wraps the given container
Parameters
container
The StateContainer to wrap
fun <T> wrap(container: StateContainer<T>, notifier: StateChangeNotifier<T>): ObservableStateContainer<T>
Wraps a StateContainer with a custom notifier.
Return
An ObservableStateContainer that wraps the given container
Parameters
container
The StateContainer to wrap
notifier
The notifier to use for state change notifications