StorageAPI constructor

StorageAPI({
  1. required StorageDatabase storageDatabase,
  2. required String apiUrl,
  3. 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({});
}