onError method Null safety

void onError(
  1. {required HMSError error}
)

when an error is caught onError will be called

  • Parameters:
    • error: error which you get.

Implementation

void onError({required HMSError error});