ObservableComposite<T> constructor

ObservableComposite<T>({
  1. bool coalesce = false,
  2. List<ObserveAware>? values,
  3. bool withStackTrace = false,
})

Changes are published synchronously by default. When coalesce is set, the changes in the current execution block are collected, and only the one event with null value will be published (in an async scheduled microtask).

Implementation

ObservableComposite(
    {bool coalesce = false,
    List<ObserveAware>? values,
    bool withStackTrace = false})
    : _withStackTrace = withStackTrace,
      super(coalesce) {
  if (values != null) {
    for (var ref in values) {
      register(ref);
    }
  }
}