APIErrors constructor

APIErrors({
  1. dynamic code,
  2. dynamic message,
  3. dynamic details,
  4. bool showLog = true,
  5. int? errorCodeFromEngine,
})

Implementation

APIErrors({
  this.code,
  this.message,
  this.details,
  this.showLog = true,
  this.errorCodeFromEngine,
}) {
  if (showLog) {
    logger.e(details, error: "[$code] $message");
  }
}