ErrorListener typedef
ErrorListener =
void Function(Exception data)
User provided callback that is given an argument of type Error and is used for conveying critical and non-critical errors from the Protocol Bindings to applications.
Implementation
typedef ErrorListener = void Function(Exception data);