ApiError<U> constructor
const
ApiError<U> ({
- required U error,
- required int code,
Constructs an ApiError response with the given error object and status code.
Implementation
const ApiError({
required this.error,
required this.code,
});