onError method
Implementation
void onError(Function(String?) callback) {
on(
ChannelEvents.error.eventName(),
(reason, {ref}) => callback(reason.toString()),
);
}
void onError(Function(String?) callback) {
on(
ChannelEvents.error.eventName(),
(reason, {ref}) => callback(reason.toString()),
);
}