OnSuccess<T> typedef Null safety

OnSuccess<T> = void Function(T data, Response response)

Implementation

typedef OnSuccess<T> = void Function(T data, Response response);