StorageAPI constructor
StorageAPI({
- required StorageDatabase storageDatabase,
- required String apiUrl,
- Map<
String, String> headers = const {'Content-Type' : 'application/json; charset=UTF-8', 'Accept' : 'application/json'},
Implementation
StorageAPI({
required this.storageDatabase,
required this.apiUrl,
Map<String, String> headers = const {
'Content-Type': 'application/json; charset=UTF-8',
'Accept': 'application/json',
},
// this.cacheOnOffline = true,
// this.onReRequestResponse,
}) {
apiRequest = APIRequest(
storageDatabase,
apiUrl,
headers,
);
// storageDatabase.collection('api').set({});
}