putEntry method
Puts an entry identified by key
on a partition.
The value is overriden if already exists or added if it does not exists.
name
: The partition namekey
: The keyentry
: The entry
Implementation
@override
Future<void> putEntry(String name, String key, E entry) {
final directory = _adapter.directory(name);
if (directory != null) {
return _putFileEntry(_adapter.directoryFile(directory, key), entry);
}
return Future.value();
}