EventSpa.error constructor

EventSpa.error({
  1. required String error,
  2. required String errorValue,
})

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,
    }
);