API constructor
API(})
Build new API requests sender
The instance will be waiting for first API.call request before starting any activity
Implementation
API(
this.domain, {
this.globalTimeout = Duration.zero,
this.token,
Map<String, Duration> requestTimeouts = const {},
Uri? noAuthDomain,
}) : noAuthDomain = noAuthDomain ?? domain {
// ignore: prefer_initializing_formals
this.requestTimeouts = requestTimeouts;
}