AnybillResult<T>.failure constructor

AnybillResult<T>.failure(
  1. {required AnybillErrorType type,
  2. int? code,
  3. String? message}
)

Used when the result of the API has failed while being retrieved.

Implementation

factory AnybillResult.failure({
  /// Type of the error (see [AnybillErrorType])
  required AnybillErrorType type,

  /// The HTTP status code as integer.
  int? code,

  /// Optional error message
  String? message,
}) = Failure;