FetchFunc<T> typedef

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

Implementation

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