Callback constructor

const Callback({
  1. void onError(
    1. String e
    )?,
  2. void onRequestError(
    1. DioError e
    )?,
})

Implementation

const Callback({this.onError, this.onRequestError});