detached method
This method is called whenever the observer is detached from a subject.
subject
- A reference to the subject object that triggered the update.
Implementation
@override
void detached(Subject<State> subject) {
super.detached(subject);
_detached?.call(subject, this);
}