ApiRequester class Null safety

Base class for all API clients, offering generic methods for HTTP Requests to the API

Constructors

ApiRequester(Client _httpClient, String _rootUrl, String _basePath, Map<String, String> _requestHeaders)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
request(String requestUrl, String method, {String? body, Map<String, List<String>>? queryParams, Media? uploadMedia, UploadOptions? uploadOptions, DownloadOptions? downloadOptions = client_requests.DownloadOptions.metadata}) Future
Sends a HTTPRequest using method (usually GET or POST) to requestUrl using the specified queryParams. Optionally include a body and/or uploadMedia in the request. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited