onClose method
- bool isError,
- Object error,
- StackTrace stackTrace
When the multicast connection closes either normally or due to an error,
this method is called. If the connection closed without error, isError
will be false. If an error occurred, you can retrieve the error using
error
. stackTrace
may be null is the error provider does not send one.
Implementation
void onClose(bool isError, Object error, StackTrace stackTrace);