triggerCallbacks method
dynamic
triggerCallbacks(
- TransactionStatusResponseCallback? callback, {
- dynamic onFailure(
- dynamic
- dynamic onResponseJSON()?,
Implementation
triggerCallbacks(TransactionStatusResponseCallback? callback, {Function(dynamic)? onFailure, Function(Map)? onResponseJSON}){
if(success != null) {
callback?.success(success!);
}
if(error != null) {
callback?.error(error!);
}
if(failure != null && onFailure != null) {
onFailure(failure);
}
if(responseJSON != null && onResponseJSON != null) {
onResponseJSON(responseJSON ?? {});
}
}