initInstance static method
dynamic
initInstance({})
Implementation
static initInstance({
required String apiUrl,
Map<String, String> Function(String url)? getHeaders,
bool log = false,
bool overide = false,
}) {
if (hasInstance && !overide) {
throw const StorageDatabaseException(
'StorageAPI instance has already initialized',
);
}
_instance = StorageAPI(apiUrl: apiUrl, getHeaders: getHeaders, log: log);
}