ImCallback constructor

ImCallback({
  1. TIMVoidCallback? onSuccess,
  2. TIMErrorCallback? onError,
})

Implementation

ImCallback({TIMVoidCallback? onSuccess, TIMErrorCallback? onError}){
  if (onSuccess != null) {
    this.onSuccess = onSuccess;
  }
  if (onError != null) {
    this.onError = onError;
  }
}