AnybillResult<T>.failure constructor
- {required AnybillErrorType type,
- int? code,
- 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;