onError property
Reports an error during SDK runtime. This callback indicates that an error (concerning network or media) occurs during SDK runtime. In most cases, the SDK cannot fix the issue and resume running. The SDK requires the application to take action or informs the user about the issue.
err
Error code. See ErrorCodeType .msg
The error message.
Implementation
final void Function(ErrorCodeType err, String msg)? onError;