HttpLibraryMethod<T> typedef

HttpLibraryMethod<T> = Future<Response<T>> Function()

A callback that returns a Dio response, presumably from a Dio method it has called which performs an HTTP request, such as dio.get(), dio.post(), etc.

Implementation

typedef HttpLibraryMethod<T> = Future<Response<T>> Function();