ApiError constructor

ApiError({
  1. required String error,
  2. String? code,
})

Returns a new ApiError instance.

Implementation

ApiError({
  required this.error,
  this.code,
});