GeneralCallback<T> constructor

GeneralCallback<T>({
  1. required dynamic onFailure(
    1. DioException e
    ),
  2. required dynamic onError(
    1. GeneralResponse response
    ),
  3. required dynamic onSuccess(
    1. T data
    ),
})

Implementation

GeneralCallback({
  required this.onFailure,
  required this.onError,
  required this.onSuccess,
});