observe method

void observe(
  1. LiveDataObserver<T> observer
)

Implementation

void observe(LiveDataObserver<T> observer) {
  _observers.add(observer);
  observer(_currentValue);
}