ImCallback constructor

ImCallback({
  1. VoidCallback? onSuccess,
  2. ErrorCallback? onError,
})

Implementation

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