ErrorListener typedef

ErrorListener = void Function(Object error, StackTrace? stackTrace)

A callback that can be passed to StreamMessageInput.onError.

This callback should not throw.

It exists merely for error reporting, and should not be used otherwise.

Implementation

typedef ErrorListener = void Function(
  Object error,
  StackTrace? stackTrace,
);