addObserver method

void addObserver(
  1. ElementsBindingObserver observer
)

Registers the given object as a binding observer. Binding observers are notified when various application events occur, for example when the system locale changes. Generally, one element in the element tree registers itself as a binding observer, and converts the system state into inherited elements.

See also:

Implementation

void addObserver(ElementsBindingObserver observer) => _observers.add(observer);