EventSpa.error constructor
Use this constructor is app error
error
is the error message
errorValue
is the error value
Implementation
EventSpa.error({
required String error,
required String errorValue,
}) : this(
eventType: "error",
customParam: {
'error': error,
'error_value': errorValue,
}
);