dispatcherTriple method
void
dispatcherTriple(
- Triple<
S> triple
Implementation
void dispatcherTriple(Triple<S> triple) {
for (final call in _callList) {
if (triple.event == TripleEvent.state) {
call.onState?.call(triple.state);
} else if (triple.event == TripleEvent.loading) {
call.onLoading?.call(triple.isLoading);
} else if (triple.event == TripleEvent.error) {
if (triple.error != null) {
call.onError?.call(triple.error);
}
}
}
}