notify<S> method
Notifies a new state of S
type.
state
defines new UI state.
Throws StateError if StateNotifier was disposed. Throws ArgumentError if state of such type was not registered.
Implementation
@protected
void notify<S>(S state) {
if (_disposed) {
throw StateError("Can't notify - $runtimeType is disposed.");
}
_stateController[S].add(state);
}