FetchFunction<T> typedef

FetchFunction<T> = Future<T> Function({dynamic body, required String endpoint, Map<String, String>? headers, String? host, FetchMethod method})

Implementation

typedef FetchFunction<T> = Future<T> Function({
  required String endpoint,
  String? host,
  FetchMethod method,
  Map<String, String>? headers,
  dynamic body,
});