put method

Future<void> put(
  1. String key,
  2. List<int> bytes, {
  3. String? contentType,
})

Implementation

Future<void> put(String key, List<int> bytes, {String? contentType}) async {
  final DVFileStorageAdapter? host = _host;
  if (host != null) {
    await host.put(key, bytes, contentType: contentType);
    return;
  }
  await adapter.put(key, bytes, contentType: contentType);
}