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