ApiConfig constructor
ApiConfig(})
Implementation
ApiConfig(
this.url,
this.publicVersion,
this.privateVersion, {
this.publicKey,
this.secretKey,
this.encrypt = false,
this.defaultParameters,
this.debugMode = false,
this.defaultTimeout = const Duration(seconds: 60),
this.uploadTimeout = const Duration(minutes: 5),
}) : assert(encrypt == false ||
(encrypt && publicKey != null && secretKey != null)) {
if (defaultParameters == null) {
defaultParameters = {};
}
}