ApiError.unknown constructor

const ApiError.unknown(
  1. String? message, [
  2. StackTrace? trace
])

Create an APIError from a custom error (eg. exception during data processing)

Implementation

const ApiError.unknown(String? message, [StackTrace? trace])
  : _dio = null,
    _message = message,
    _trace = trace,
    _statusCode = -1;