GeneralCallback<T> constructor Null safety

GeneralCallback<T>(
  1. {required dynamic onFailure(
    1. DioError 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,
});