observe method
Wraps the feature with the specified observer.
observer: The observer to attach.
Returns a FeatureObserverWrapper that monitors the feature's interactions.
Implementation
Feature<S, M, E> observe(FeatureObserver<S, M, E> observer) =>
FeatureObserverWrapper(
feature: this,
observer: observer,
);