listenOn<S extends BaseState> method
Implementation
void listenOn<S extends BaseState>({BlocListenerFunction? func}) {
func ??= defaultListener;
if (func != null) {
_listeners[S.toString()] = func;
}
}
void listenOn<S extends BaseState>({BlocListenerFunction? func}) {
func ??= defaultListener;
if (func != null) {
_listeners[S.toString()] = func;
}
}