APIError constructor

APIError(
  1. int data, {
  2. APIErrorType type = APIErrorType.local,
  3. String body = '',
})

API Error constructor

Does not provide side effects; Type defaults to local

Implementation

APIError(this.data, {this.type = APIErrorType.local, this.body = ''});