attach method
void
attach(
- T state
Implementation
void attach(T state) {
assert(!_states.contains(state), "Already attached a given state in the controller.");
_states.add(state..addListener(notifyListeners));
}